|
Answer» I want to print a textfile from ms-dos, USING the print-command, and send it to a PRINTER located on the server.
Have tried various examples like:
print c:\MyFile.txt /NETWORKPATH:lpt1
however nothing seems to work.
Anybody got a clue? Try using the format:
print /d:\\servername\printername filename.ext
Good luck.
I managed.
You WRITE:
....net send lpt: \\SERVER_NAME\PRINTER_NAME
....{ENTER}....
....and then:
..........net send MyTextFile.txt lpt1:
...{ENTER}....
Don't FORGET to kill the printer connection with:
.....net send lpt1: /d
or it will also be killed when you log off.
Happy Me!I say:
net use lpt1: \\SERVER_NAME\PRINTER_NAME
{ENTER}
and then:
....print mytextFile.txt {ENTER}
Kill the connection with:
.....net use lpt1: /d
Happy Me!
|