How to set LPT1 to Default printer?

R

Ray

Ok, so I have a DOS app that's hard coded to print to LPT1. How do I set
(preferably with the absolute minimal amount of coding) LPT1 to = Default
printer. It may be IP printer, or IPX printer. I've seen some posts
indicating parsing a reg entry, but I've looked at my entry on my comptur,
which ties to a network printer, however in the Device reg key entry, it
doesn't show an IP address, but rather just my friendly name.

So - how do I set LPT1 to equal a default printer - or at the very least,
something that Windows will understand what to print to if an app prints to
LPT1.

Thanks,
Ray
 
A

Austin M. Horst

Redirect print output for the LPT1 port to "PrinterName"
on print server "ServerName":

net use LPT1: \\ServerName\PrinterName

Displays information about the LPT1 port:

net use LPT1:

Austin M. Horst
 
R

Ray

Correct. The problem is - I don't know on any given workstation what the
default printer actually is. Meaning, I need a scripted method to gather
the name\queue that is readable to put back into the NET USE command.

Any thoughts?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top