• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2482
  • Last Modified:

redirect LPT1 to network printer

win nt workstation:
how can I capture a network printer to a local lpt port?
I want DOS programs that print directly to LPT1 to be able to print to \\srv\printer

0
SamC071599
Asked:
SamC071599
  • 2
1 Solution
 
JakeJCommented:
Use this line from your Command Prompt.

net use LPT1 //<server name>/<printer Name>

Good Luck.

Jake
0
 
xEr72Commented:
net use LPT1 //svr/printer /persistent:yes

Jake provided you with an answer, but you must add persistent as a parameter if you wish to have your system continue to re-connect to this share upon future logins.  to disconnect this share, use the following command

net use /delete lpt1
0
 
czpczpCommented:
SamC, JakeJ and xEr72 both provided you with your solution but I just want to clarify something to defuse any confusion when you try the suggestions.

In there examples the slashes must be back slashes not forward slashes (except for the /persistent and /delete switches).

In other words, instead of this:
net use LPT1 //<ServerName>/<PrinterName> /persistent:yes

you want this:
net use LPT1 \\<ServerName>\<PrinterName> /persistent:yes

Just my two cents :-)
0
 
czpczpCommented:
Ooops -- in the second sentence I meant "In their examples" NOT "In there examples"  ;-)
0

Featured Post

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now