Discussion Locked

printing in the dos prompt using windows

0 helpful
1 reply
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

iam using win98 computer connected to a network printer, (\\server\laserjet)i have lots of *.txt files that i print in dos prompt, i can configure a port to use lpt2 and my command to print in dos to the printer is c:>copy test.txt lpt2, then it will say i file copied and then the printer prints.
how can i do this in win2k?do i need to configure a port and how?
please advise.
thanks!

1 reply

by jereg

Try using the NET USE command. Open a command (DOS) windows and type something like

NET USE LPT2 \\server\laserjet

You can add

/PERSISTENT :YES

to maintain the connection. you can verify if it worked or not by typing just NET USE. The printer path should appear. Then, send files to the print like any other DOS text file.

This discussion is closed to new replies.