# need a bat file to rout a text documentdirectly to a printer

November 13, 2012 at 11:27:14
Specs: Windows XP

 I can use net use to map a network printer to the lpt2 port as follows:net use lpt2 /deletenet use lpt2 \\rssms2-vmprt01\psms2l00068850 /persistent:yesI don't need to open the text document I want sent to the printer, so how do I get or rout the text document directly to the lpt2?

See More: need a bat file to rout a text documentdirectly to a printer

#1
November 13, 2012 at 15:38:00

 copy file lpt2should work if it is indeed a text file (as you said) and not a formatted file (ms-word, wordperfect, adobe etc). (i have the feeling it's not this simple, however...)

Report •

#2
November 14, 2012 at 07:47:30

 Setting the network printer shared as psms2l00068850 justcopy "filename" \\rssms2-vmprt01\psms2l00068850

Report •

#3
November 14, 2012 at 09:53:21

 Actually this ended up working the best, for me anyhow:lpr -PPR7 -S10.47.245.61 "C:\Documents and Settings\%USERNAME%\Desktop\My Tags.txt"Where 10.47.245.61 is the IP address for the \\rssms2-vmprt01\psms2l00068850 printer.Thank you to all that replied.

Report •

Related Solutions