Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This I understand:

net use P: \\\SOME_SHARE

(the second argument is a logical share on the given computer)

This, I do NOT understand:

net use LPT2: IP_1.2.3.4

(where IP_1.2.3.4 is the name of a "port" assigned to a printer; the IP is a valid and responding device, but the full string "IP_1.2.3.4" is not)

Can anyone tell me, is there ever a syntax of NET USE that could operate on a printer port like that? I can't get it to work, can't find anything via Google, and am practically in tears.

[Sorry if this is cheating, this is basically a re-post of but with the scope narrowed just to the main issue at hand.

share|improve this question

migrated from Dec 15 '09 at 2:46

This question came from our site for professional and enthusiast programmers.

Okay, basically, the command Net Use LPT1: \servername\sharename [persistent:yes/no] is what you are looking for. What it does it to point any incoming traffic to the LPT port and redirects it to the share. Assuming either that the computer hosting the printer or the printer itself is sharing itself, you need to determine the servername of the host and you are assuming the IP_1.2.3.4 is the sharename. Try and Net View the IP address.

You can demonstrate this by going to one of your printers in your computer and right clicking and sharing it. Choose something like SHARED_PRINTER. Then go Net View, look for your own computer's name. Then do Net View on your IP or computer name and it should show the share. Then you can do the Net Use command on your self.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .