Use the net command.
net use lptx \\printserver\sharename /persistent:yes
where x is the number of the printer port that you want to map, where printserver is the print server that is sharing the printer, and where sharename is the name of the printer share.
For example, to map LPT1 to a printer shared as Printer1 on a print server that is named Printserver, follow these steps:
Click Start, and then click Run.
In the Open box, type cmd, and then click OK.
Type net use lpt1 \\printserver\printer1 /persistent:yes, and then press ENTER.
To quit the command prompt, type exit, and then press ENTER.
Note In Windows , non-administrative users cannot map an LPT port to a network printer path when the LPT port exists on the computer as a physical parallel port.
To disconnect persistent LPTx connections, use the following syntax:
net use lptx /delete
Post a Comment