Discussion Locked

Printing to a network from DOS

0 helpful
6 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I'm running WIn 2000 ADV SER and WIN 98SE and woul like to know what command and where do I need to add it in order to print from Dos to the printers on my network. In Dos the default port is LPT1?????!!!!!

6 replies

by maxwell edison

You don't mention your DOS application, or perhaps you're simply printing directories and/or text files. Nonetheless, there are a couple of things you could do.

1. Capture a printer port.

2. Print to file - copy the file to the printer.

Refer to this Microsoft article for the full explanation and instruction on these, as well as other options.

http://support.microsoft.com/default.aspx?scid=kb;EN-US;q133152

(REMOVE SPACES from the pasted URL.)

Maxwell

by vinnyd

Use the net use command

Net use lpt1 \\server\printersharename

you can create a login script to do it.

Remember the login script for win95/98 must be a .bat file and not a .cmd file.

by gigelul

In addition to answer2:
The correct sintax for mapping is: net use lpt1: \\ServerName\PrinterName
and for delete mappings : net use lpt1: /delete
But remember, if you have many printers and also some attached to local workstation and shared here can be a conflict.
Suppose an user work on Win9x workstation and also have a local printer:
-this user can't print from DOS on other network printer (because exist local LPT1 and is used)
-if this user use the previous described NET command then other users from network can't print to this local printer (all jobs are redirected).
Solution:
-purchase for critical printers some low level print servers and attach this printers direct to network.

by gigelul

Personal I create some batch files with these commands (mapprinter1.bat, mapprinter2.bat, deletemap.bat, etc) and I copy these files on a shared folder with read&execute permissions, I put shortcuts to this files on users desktop and I instruct themhow to use these.

This discussion is closed to new replies.