NET USE LPT2: printer_port
This I understand:
net use P: \SOME_COMPUTERSOME_SHARE
net use P: \1.2.3.4SOME_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 https://stackoverflow.com/questions/1884235/old-school-windows-2000-printing-or-when-is-a-port-name-a-computer but with the scope narrowed just to the main issue at hand.
windows networking command-line printing network-shares
migrated from stackoverflow.com Dec 15 '09 at 2:46
This question came from our site for professional and enthusiast programmers.
add a comment |
This I understand:
net use P: \SOME_COMPUTERSOME_SHARE
net use P: \1.2.3.4SOME_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 https://stackoverflow.com/questions/1884235/old-school-windows-2000-printing-or-when-is-a-port-name-a-computer but with the scope narrowed just to the main issue at hand.
windows networking command-line printing network-shares
migrated from stackoverflow.com Dec 15 '09 at 2:46
This question came from our site for professional and enthusiast programmers.
add a comment |
This I understand:
net use P: \SOME_COMPUTERSOME_SHARE
net use P: \1.2.3.4SOME_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 https://stackoverflow.com/questions/1884235/old-school-windows-2000-printing-or-when-is-a-port-name-a-computer but with the scope narrowed just to the main issue at hand.
windows networking command-line printing network-shares
This I understand:
net use P: \SOME_COMPUTERSOME_SHARE
net use P: \1.2.3.4SOME_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 https://stackoverflow.com/questions/1884235/old-school-windows-2000-printing-or-when-is-a-port-name-a-computer but with the scope narrowed just to the main issue at hand.
windows networking command-line printing network-shares
windows networking command-line printing network-shares
edited May 23 '17 at 12:41
Community♦
1
1
asked Dec 14 '09 at 20:41
Todd PierzinaTodd Pierzina
52149
52149
migrated from stackoverflow.com Dec 15 '09 at 2:46
This question came from our site for professional and enthusiast programmers.
migrated from stackoverflow.com Dec 15 '09 at 2:46
This question came from our site for professional and enthusiast programmers.
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
Okay, basically, the command Net Use LPT1: servernamesharename [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.
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f83344%2fnet-use-lpt2-printer-port%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Okay, basically, the command Net Use LPT1: servernamesharename [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.
add a comment |
Okay, basically, the command Net Use LPT1: servernamesharename [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.
add a comment |
Okay, basically, the command Net Use LPT1: servernamesharename [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.
Okay, basically, the command Net Use LPT1: servernamesharename [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.
answered Dec 15 '09 at 3:16
BlackbeagleBlackbeagle
6,3911623
6,3911623
add a comment |
add a comment |
Thanks for contributing an answer to Super User!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f83344%2fnet-use-lpt2-printer-port%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown