I am trying to change a local printers port via a batch file but I'm running into problems.
The printer is currently set as LPT1 and I need it to be IP_126.96.36.199. If I use the command:
rundll32 printui.dll,PrintUIEntry /Xs /n "Canon 6800" Portname "LPT2:"
it changes the port to LPT2, so I know that this method does work.
But, if I use the exact same command but change the port to the IP address I want to use like this:
rundll32 printui.dll,PrintUIEntry /Xs /n "Canon 6800" Portname "IP_188.8.131.52"
I get an error telling me that the specified port is unknown.
I'm guessing that I first need to create the IP port and then use the above command to tell the printer to use it.
But how do I create the port via the command line ?
thanks in advance for any help !