Link to home
Start Free TrialLog in
Avatar of JVauditor
JVauditor

asked on

Mapping LPT1 to IP printer: System 66 error

I'm using an old DOS program that gives the option of printing to LPT1, 2 or 3.  My computer is running Windows XP and has no physical LPT ports.  I would like to remap LPT1 to print to an HP LaserJet 4200 printer using HP jetdirect 680n, which is accessed through a Linksys Wireless B router.  The printer is currently being used by two different computers (both Apple and IBM systems), but is not set up as a shared printer on my computer.  I am able to ping the printer using its IP address.  I am using Norton Antivirus 2007.

I understand that remapping can be accomplished using the "net use" command in the DOS window, but I get the error message "System error 66 has occurred.  The network resource type is not correct."  The syntax I used is
net use lpt2 \\mycomputername\printername /Persistent:yes
I've tried the command in various ways using lpt1, 2 and 3, and dropping the persistent command, but still get the same error.  Any suggestions?
Avatar of michko
michko
Flag of United States of America image

Close the lpt1 connection first.

net use lpt1 /delete

After that processes, then try your net use command again.  Your syntax looks fine.
Avatar of JVauditor
JVauditor

ASKER

I tried

net use lpt1 /delete

I got the message "The network connection could not be found"
ASKER CERTIFIED SOLUTION
Avatar of michko
michko
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
YES!  IT WORKED!!  Thank you so much!  I am now able to print from my DOS program to my IP printer.
My problems were twofold:  
  1) The printer was not set to be shared, and
  2) I was using the computer description rather than the full computer name in the net use command.

michko pointed me in the right direction, and with a little experimentation with the net command, I finally put the pieces together.
You are very welcome.  This reaction is one of the biggest reasons I enjoy EE so much.  Glad I was able to help.

michko