net use lpt1: '\\hostname\printername' /PERSISTENT:YES
. Of course you can redirect to another device, but lpt1: is the default, so you don't have to mention it when using the print command. You can find out all the hosts on your network with net view
and the names of all the shares on any host with net view hostname
. The /PERSISTENT:YES option makes the change survive a system shutdown.
You then can print to the printer using the
print filename
command. Be careful: if you're printing UNIX text files, print will not insert the DOS-Textfile format \r's its expecting, and you'll get your text shifetd of the right side of the page. If printing binary stuff, you just get ugly special chars, of course.
No comments:
Post a Comment