Advertisement

There's no such thing as a stupid question, but they're the easiest to answer.
Login
Search

Advertisement

Windows XP Windows XP
Search Search
Search for:
Tech Support Guy > > >

net use lpt1:


(!)

virtualgeorg's Avatar
virtualgeorg virtualgeorg is offline
Member with 317 posts.
THREAD STARTER
 
Join Date: Sep 2003
Location: Middle of the desert
16-Aug-2006, 02:13 PM #1
net use lpt1:
I have a old program that I think is printing from dos and works fine.
If I want to print to a different computer on the network I have to use
net use lpt1: \\servername\printername from the command line first, then when I print it goes to that printer on the network instead of the local printer.

Now if I want print back to the local printer again, how would I use the net use command to send print jobs back to my local printer?

If I try the net use lpt1: command and enter my local computer name & printer name, that does not work, it still prints to the network printer.

I have to re-boot to get it to print back to the local printer again.

thanks
-George
datamonger's Avatar
datamonger datamonger is offline
Computer Specs
Senior Member with 244 posts.
 
Join Date: Jul 2006
Location: San Diego, CA
Experience: Advanced
16-Aug-2006, 02:50 PM #2
Try: net delete lpt1:
Cpants's Avatar
Cpants Cpants is offline
Junior Member with 5 posts.
 
Join Date: Aug 2006
Experience: Advanced
16-Aug-2006, 04:38 PM #3
Angry Net Use Problems
I have a client that I have to capture a printer port for but all of a sudden I can capturer the port but I am not able to print to the device after I capture the LPT1 port. Any ideas would be great.
rhynes's Avatar
rhynes rhynes is offline
Member with 901 posts.
 
Join Date: Aug 2006
Location: Edmonton
Experience: Advanced
16-Aug-2006, 04:38 PM #4
can you change the dos software you want to print from to lpt2: or lpt3: cause you can reroute either of those ports too and leave lpt1: alone for local printing.

first up, in a command prompt, type:
net use lpt1: /delete /y to get your local port back.

open notepad and type in the following:
net use lpt2: /delete /y
net use lpt3: /delete /y
net use lpt2: \\computername\printername
net use lpt3: \\computername\printername

save it as filename.bat in your startup folder.

a batch like this will remove the lpts and redo them everytime you boot up the system.
/y tells dos to delete without prompting.
rhynes's Avatar
rhynes rhynes is offline
Member with 901 posts.
 
Join Date: Aug 2006
Location: Edmonton
Experience: Advanced
16-Aug-2006, 04:42 PM #5
BTW, if you can't change the lpt in the dos software and have to print to lpt1, you can create 2 batch files and put them on the desktop.

batch 1 to connect lpt1: to a network printer

net use lpt1: \\computername\printer

batch 2 to remove would be:

net use lpt1: /delete /y
Cpants's Avatar
Cpants Cpants is offline
Junior Member with 5 posts.
 
Join Date: Aug 2006
Experience: Advanced
16-Aug-2006, 05:15 PM #6
What I have now is the following

Net Use lpt1: /delete /y

Net Use lpt1: \\servername\printername


The reason I have server name is because we use thin print. This was all working great until last Friday and cannot figure it out.
rhynes's Avatar
rhynes rhynes is offline
Member with 901 posts.
 
Join Date: Aug 2006
Location: Edmonton
Experience: Advanced
16-Aug-2006, 05:18 PM #7
ok, does it work?
Cpants's Avatar
Cpants Cpants is offline
Junior Member with 5 posts.
 
Join Date: Aug 2006
Experience: Advanced
16-Aug-2006, 05:21 PM #8
So if I go to a command line and type in the Net Use it will tell me LPT1 is captured to the correct port but nothing prints.
rhynes's Avatar
rhynes rhynes is offline
Member with 901 posts.
 
Join Date: Aug 2006
Location: Edmonton
Experience: Advanced
16-Aug-2006, 05:23 PM #9
type into a command prompt:

net use

and tell me what it comes back with. There's nothing to worry about security wise as long as the corporate name or something is in there...
As Seen On

BBC, Reader's Digest, PC Magazine, Today Show, Money Magazine
WELCOME TO TECH SUPPORT GUY!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.


(clock)
THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Search Tech Support Guy

Find the solution to your
computer problem!




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


WELCOME
You Are Using: Server ID
Trusted Website Back to the Top ↑