Im trying to install a network printer via something of the form: rundll32 printui.dll,PrintUIEntry /if /b "Test Printer" /f %windir%\inf\ntprint.inf /r "lpt1:" /m "AGFA-AccuSet v52.3" It works with lpt1: as the port for the command but I want to use an IP address. If I change lpt1: to an ip address it doesnt seem to work. Anyone know whether this is possible and what the correct formatting should be?