How do i change the printer port of a network shared printer?

peetabix

Junior Member
Dec 15, 2004
7
0
0
To cut a long story short i want to print from a dos program to 2 network shared printers (shared from a Win98 comp) from WinXP Home.
In the dos program the printers need to be on ports LPT1: and LPT2:, but in the printer properties in WinXP for those printers, the port name is the path to the printer over the network.
Is there anyway to fool WinXP or DOS to think that these printers are attached to LPT1: and LPT2: ?
 

peetabix

Junior Member
Dec 15, 2004
7
0
0
Nevermind just found out

Just use the NET comand
net use lptx: \\printserver\sharename
where lptx: is change x to the printer port number and where \\printserver\sharename is change that to the path over the network to the printer.

what does /persistent:yes do?