I can use net use to map a network printer to the lpt2 port as follows: net use lpt2 /delete
net 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?
copy file lpt2
should 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...)
Setting the network printer shared as psms2l00068850 just copy "filename" \\rssms2-vmprt01\psms2l00068850
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.
