[dba-Tech] Printing from DOS to a networked Windows printer

Gustav Brock Gustav at cactus.dk
Sat Sep 28 16:09:42 CDT 2013


Hi Jim

To list ressources: Net view \\servername

First, map the printer with: Net use LPT1: \\server\printername

Write to the printer:

copy d:\filename lpt1: /b 
or:
print /D:lpt1 d:\filename

/gustav

>>> accessd at shaw.ca 28-09-13 19:23 >>>
Hi All:

If any of you have some techniques for printing to a Windows network printer from the command prompt I would be interested in knowing. Any other related issues I would also be eager to know.

There is a lot of stuff out on the web about such processes but I have a time limit to come up with the best and most flexible method for accomplishing this. Any suggestions or/and sample code would be greatly appreciated.

MTIA

Jim 



More information about the dba-Tech mailing list