Discussion Locked

Print From DOS to Windows

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
How do I print to a (WINDOWS 98) networked HP Laser printer from a DOS program on a remote workstation? The only options on the program are; LPT1, LPT2, or a text file (filename.prn

3 replies

by jschein

you must use the "net" command in dos.

net use lpt1: \\computername\printername /User:\ /persistant:yes

Good luck

by angela.brown2

Capture your networked printer to lpt1 via the printer properties.

Click Start, point to Settings, and then click Printers.
Right-click the printer that is mapped or captured to a network share using LPT1, and then click Properties.
Click the Details tab, and then click Add Port.
In the Network box, specify the location of the printer (for example, \\server\printer), and then click OK, where \\server\printer is the name of your network print queue and printer name.
Click Capture Printer Port. Make sure that the port in use by the printer is not LPT1, and that the path is \\server\printer.
Click End Capture, click LPT1 \\server\printer, and then click OK.
Click OK.

by mark

I'm assuming both systems are running Windows, but the program is DOS. The easiest is to browse Network Neighborhood for the Server PC and click on the printer. It will be asked to be setup. Do so and when it asks if you print from DOS programs, answer YES. Then you have the option to Capture the printer port. Use LPT2 if you want to leave LPT1 open for local printing (Recommended). Then set your DOS program to print to LPT2.

If the printer is already setup on the work station, you can just capture the LPT2 printer port. You can do this in the details tab and you can browse for the printer. Or you can drop to a DOS prompt and type net use lpt2 \\server\printer-sharename. Type net use to see if it took OK. Then just tell your DOS program to print to LPT2.

This discussion is closed to new replies.