command line print of file

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

How do I send a file to a printer via the run command line or a dos batch
command line?

Easy as pie to just drag and drop files into printer icon, but I want to
click on icon and send several at once to a printer.

Seems easy, nothing I can find to do it.

Help!
 
ZamAtWork said:
How do I send a file to a printer via the run command line or a dos batch
command line?

Easy as pie to just drag and drop files into printer icon, but I want to
click on icon and send several at once to a printer.

Seems easy, nothing I can find to do it.

Help!

Depends on what file types you want to print and what software you have.

Some Microsoft Office applications have Object Linking and Embedding
(OLE) capabilities. You can link other documents within a master
document which will change to reflect changes to the linked documents.
With that system you could print the master document and the hard copy
would reflect the contents of the linked documents at the time you
printed the master document. If the respective applications are coded
properly the applications that open then master and linked documents to
be separately open simultaneously. You might be able to get more
detailed information in one of the Office application forums on this site.

Obviously you HAVE to maintain the documents in the proper places for
the links to remain valid. This could potentially lead to problems
copying the files to another computer or folder.

There are applications from other publishers that can utilize OLE linking.
 
Thanks RobertVA, I don't believe its an OLE situation. Windows already has
these files associated to their proper applications. When you send them to a
printer by dragging the documents/files in Windows to the printer I'm wanting
to print them on it automatically knows which proggies to open, then opens
them, then it prints the files with the printer I dropped them on.

I know I can open a file from the run line or dos command line with a file
and the /p option which will would work great, except I don't want to use the
default printer.

I've also tried the print command, and directing it with the /d: option to
the network printer I'm wanting to route these files to, but it seems to have
trouble initialising the printer. Maybe I just don't know the proper path
and name to the printer, but I've tried a lot of difrent combonations I
thought it might be.

Uhg! I know its got to be some simple command windows runs that I can't see
in the background that equates to dragging and dropping a file on to a
printer icon.

I'm pretty sure I can do it too through VB, but thats too complex of thing
too for something that seems like it could be as simple as writing a batch
file with these commands which just about anyone could change with no special
programing knoweledge.

This don't seem like something I would need to pay microsoft to answer
either, but if my work wills it to happen bad enough, maybe they'll pay.

Any more help is appreciated! Thanks!



Theres got to be some hidden command in the background that windows does to
 
Back
Top