Discussion Locked

Printing from DOS to a network printer

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

I am tryin to set a printer up to be able to print from a DOS program to a Printer that is on our network. It is connected VIA Jet Direct.

Any ideas?

12 replies

by ewgny

net use lpt1: \servername\printername /persistent /y

the persistent switch will keep the lpt1 mapped if desired

by nhoek

Its not shared off a server, its on a jet direct with an IP address.

by sgt_shultz

the above answer will work if you are running your DOS program from a DOS shell inside windows. otherwise, you will need to install a DOS network client. those are available from the windows nt server disk in the clients folder. you will need your DOS drivers for your NIC (get the ones that say NDIS or WFW311 or DOS). does this help? tell us more if not..

by curlergirl

IF YOU ARE USING A WINDOWS OS (9x,ME,NT/2K/XP): The printer has to have a server or workstation acting as a print spooler in order to run on the network. In order to print from a DOS windows, you need to install the printer on the workstation under Windows first by using Add Printer. If there is already a server or workstation set up to act as the print spooler for this printer, then you can select "network printer" in the add printer wizard and connect that way. If there is no other machine acting as the print spooler for this printer, or if you want the workstation to be able to print directly to the printer rather than using another machine to spool to, then you must install the appropriate drivers for the printer locally. If it's an HP printer, which I assume it is, you should have available somewhere a CD with all the drivers on it for the various OS's that you might have on your workstation. The easiest way to install the printer is to use this CD, because it will also install the appropriate printer port software on the local workstation. Once the printer is installed and working properly from Windows, then you can use the "net use lpt" command to map the LPT port to the printer. NOTE: If you are on WinXP and the user is NOT a local administrator, then you MUST use LPT2; LPT1 cannot be mapped from an XP machine to a Windows printer except by an administrator.

OK - if it's a DOS machine (no Windows OS at all), then as the previous answer pointed out, you need the DOS network client first.

Hope this helps!

by ewgny

Just use the CD that came with the Jetdirect card, install the printer on the PC you are running the Dos program and it will print !!

by acontract

I have the same issue but with a print server hub instead of a jet direct. I have tried the Net Use command and it didn't work. Any help would be greatly appreciated!

This discussion is closed to new replies.