map networked printer  to the computer's LPT1

Posted on 2000-05-10
Medium Priority
Last Modified: 2013-12-28
I have a software that requires me to print to the LPT1. Is there a way i can map the lpt1 to the network location, so that i can print to the LPT1 and it will print to the network printer.
Question by:mdcruze
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

Expert Comment

ID: 2796641
Use the command "Net Use LPT1 \\servername\printername" either in autoexec.bat or the batch file that calls your program.


Expert Comment

ID: 2796665
OOPS, left out a colon.  The command should be:
"Net Use LPT1: \\servername\printername"


Accepted Solution

rtheriot earned 150 total points
ID: 2798229
NT should also allow you to capture lpt1: when you use the gui interface to map to a printer, thus keeping the printer "permanatly" (sp) mapped to the specified port.

Do this by adding a "local" printer
and then click on the "add port" button on the first screen.  After that select lexmark tcp/ip network port.  If you have never done this before it will ask you for the nt cd.  It will then ask you for either the ip or network address of the printer.

this way when you reboot, you will not have to re-map the printer port, Im pretty sure if you follow bchew's advice, although it will work, the change will not carry through a reboot.


Building an interactive eFuture classroom

Watch and learn how ATEN provided a total control system solution including seamless switching matrix switch, HDBaseT extenders, PDU, lighting control to build an interactive eFuture classroom.


Expert Comment

ID: 2799154
If you want to be sure that you ALWAYS have printer mapped to LPT1 put above commands (from bchew comment) either in startup folder as shortcut or put it into logon script on NT server (if you have one).
This will assure that you never lost your settings.


Expert Comment

ID: 2799494
rtheriot --related to his comment..

There are more HPs out there and if you go to the web site and download a tool set for NT printing, you can then add a HP tcp/ip port.

Note: win2000 will allow for direct to printer IP printing (doesn't go through file server que system at all...)


Expert Comment

ID: 2801695
My advice to put the command in autoexec.bat or the batch file that calls the software program that needs to print will both survive a re-boot.  The printer will be re-mapped every time the computer is started if it is in autoexec.bat, every time the application is run if in the batch file.  Also, it has the advantage of working even if the application in question is dos-based rather than windows based.


Author Comment

ID: 2818630
Thanks for your help, although i haven't been able to connect to the printer yet, but seems like this is sufficient information

Featured Post

Video: Liquid Web Managed WordPress Comparisons

If you run run a WordPress, you understand the potential headaches you may face when updating your plugins and themes. Do you choose to update on the fly and risk taking down your site; or do you set up a staging, keep it in sync with your live site and use that to test updates?

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I was prompted to write this article after the recent World-Wide Ransomware outbreak. For years now, System Administrators around the world have used the excuse of "Waiting a Bit" before applying Security Patch Updates. This type of reasoning to me …
Ever visit a website where you spotted a really cool looking Font, yet couldn't figure out which font family it belonged to, or how to get a copy of it for your own use? This article explains the process of doing exactly that, as well as showing how…
The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
Suggested Courses

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question