I tried
net use lpt1 /delete
I got the message "The network connection could not be found"
Main Topics
Browse All TopicsI'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\printerna
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?
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Create it as a shared printer, then do the net use command. This link gives a good explanation of printing to an IP printer through lpt1:
http://members.shaw.ca/bsa
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.
Business Accounts
Answer for Membership
by: michkoPosted on 2008-01-30 at 07:54:26ID: 20777962
Close the lpt1 connection first.
net use lpt1 /delete
After that processes, then try your net use command again. Your syntax looks fine.