|
Question : Printing to IP address from Command Prompt
|
|
Hello,
Got the following situation here:
print labels via batch files using the command copy file.txt \\server\share command. have recently done away with server based printing and everything is printing directly IP. Can anyone think of a way to print to an IP printer using the command prompt? Right now bringing a server back in production to duplicate the original printing environment but want other options.
Thx!
|
Answer : Printing to IP address from Command Prompt
|
|
Yes LPR is the utility you need to use. http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/lpr.mspx
Your printer has to be running an LPD daemon, most of the printers these days do...
Example to use: lpr -S 192.168.1.194 -P Xerox c:\boot.ini
This will send a standard text file such as the boot.ini to the ip address 192.168.1.194 printer, I have just given it the name Xerox, this is required.
If you require to send to binary or postscript job you have to tell the printer how to spool the RAW job. You would use the following:
lpr -S 192.168.1.194 -P Xerox -o | c:\boot.ini
|
|
|