7 replies
by razzadaz
Some ideas:
net use LPT1: /delete
net use LPT1: \\servername\queuename
The first line clears the assignment, if any, and the second line assigns the LPT port. This will work for printers on NT and Novell servers.
At the command prompt you can also type:
net use /?, for additional syntax
by imranmcse
by imranmcse
by joseph moore
I actually ran into this a few years ago. Here is what I did:
The answer about Net Use LPT1 is correct. What I did was I set up a 2 BAT files. The first one, APPRUN1, looked like this:
NET USE LPT1 /DELETE
NET USE LPT1 \\SERVER1\PRINTER1
CALL "C:\PROGRAM FILES\APP1\APP1.EXE"
Then the second BAT file, APPRUN2.BAT looked similar:
NET USE LPT1 /DELETE
NET USE LPT1 \\SERVER1\PRINTER2
CALL "C:\PROGRAM FILES\APP2\APP2.EXE"
What this did was it removed the LPT1 printer mapping, just in case it was pointing to the wrong network shared printer. It then would map LPT1 to the right printer, and THEN it called the application I wanted to run that needed to print to each specific printer.
I kept both BAT files on my Desktop, and would double-click thest BAT files instead of the normal Start -> Programs shortcuts.
So, try this. Set up one BAT file for each DOS program and associated network printer.
BTW, you might need to set up a PIF file to run each DOS program; the BAT filewould CALL the PIF file, instead of the EXE file. If you are running DOS programs in NT, then I will assume you already do this.
Hope this helps.
by imranmcse
by imranmcse
This discussion is closed to new replies.
Trending Windows Forum posts
Sort by Trending