General discussion

Locked

Printing from a DOS application

By john.yust ·
I am trying to run a DOS application on NT 4.0 Workstation, SP4, that wants to print to LPT1. I could do this on Windows 95 by capturing a printer port to an installed printer. However, this capture capability does not seem to exist on NT. Any ideas how to do this?

This conversation is currently closed to new comments.

8 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

Printing from a DOS application

by DC1 In reply to Printing from a DOS appli ...

You would need to issue the following command.

NET USE LPT1 \\Server\printer Queue

Collapse -

Printing from a DOS application

by john.yust In reply to Printing from a DOS appli ...
Collapse -

Printing from a DOS application

by mike_mds In reply to Printing from a DOS appli ...

Answer #1 is correct, make sure if you want the share to last after rebooting that you use the "persistent" option at the end of the net use command line. I think it is /p, but run net use /? to be sure.

Collapse -

Printing from a DOS application

by john.yust In reply to Printing from a DOS appli ...
Collapse -

Printing from a DOS application

by HarryG In reply to Printing from a DOS appli ...

The way I did this was to create a batch file that first maps the printer -

NET USE LPT1 <your networked printer name>

Then include the commands to run the DOS application.

I also included NET USE LPT1 /D as the last line of the batch file, to disconnect when finished.

Collapse -

Printing from a DOS application

by john.yust In reply to Printing from a DOS appli ...
Collapse -

Printing from a DOS application

by singhjunk In reply to Printing from a DOS appli ...

Both the above answers are pretty right.

At a command prompt (or in a batch file), type:
NET USE LPTx: \\computername\sharename /PERSISTENT:YES

Collapse -

Printing from a DOS application

by john.yust In reply to Printing from a DOS appli ...
Back to Windows Forum
8 total posts (Page 1 of 1)  

Related Discussions

Related Forums