Discussion Locked

Printing from DOS based programs

0 helpful
10 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
We've recently upgraded our network software from Novell 5 to windows 2003 server. Our client OS is windows 2000 pro. The problem I'm having is having certain workstations not being able to print DOS based programs to a network printer even though the workstation is mapped to the specific printer. Printing from windows is fine, and I should add that it was printing DOS jobs up until recently. A temp fix I use to work round the problem is deleting the port(lpt2) from DOS prompt and asking the user to re-log on which then re-maps the printer. The problem is the next day, I seem to have the same problem.

10 replies

by james.wood

I would map the network printer to the LPT1: port via either the user's logon script or an environment variable setting for the DOS window that launches the program by using the net use command. Then try printing from DOS to the LPT1: port. If that works, you should also be able to map lpt2: and lpt3:

by lemara086

Try this at the users desk or thru a script, type the following at the command prompt:
net use lpt2 \\server\sharename /persistent:yes

Users who do not have Admin rights cannot map to LPT1. The persistent switch means the map will occur each time the boot up. The printer does not even have to be installed on their system, assuming the printer is installed on the server.

To delete the mapping type:
net use lpt2 /delete

Hope that helps!

by eeeeee

we trying to migrate from the novell 5 to windows 2003.I need a command to print the files using the DOS batch file can u give me a alternate command for nprint inDOS which will include the no of copies and the queue.

by eeeeee

we trying to migrate from the novell 5 to windows 2003.I need a command to print the files using the DOS batch file can u give me a alternate command for nprint inDOS which will include the no of copies and the queue.

by eeeeee

we trying to migrate from the novell 5 to windows 2003.I need a command to print the files using the DOS batch file can u give me a alternate command for nprint inDOS which will include the no of copies and the queue.

by magdy_abdraboh

1 - From control panel make your printer shared

2 - From the command prompt
C:\>net use lpt1 \\PCName\PSName

Where PCName is your computer name
PSName is your printer share name

Now any print from dos will redirect to your windows printer
You can use print command to print 1 copy

if you need No of copies you can use Mprint.exe from the Link :
http://www.4shared.com/file/30731470/75249680/MPRINT.html

Mprint FileName Qty Queue
Where
FileName: Text file name
Qty : No. Of Copies
Queue : Storing Directory(option)

This discussion is closed to new replies.