I am writing a script to add network printers on Windows XP. The script is for my school, and will make it easy to add printers managed by our CUPS print server.
This is what I have so far:
set /p room=What room number (ex. B230) is the printer located in?
rundll32 printui.dll,PrintUIEntry /in /n "http://172.16.28.25:631/printers/%room%" /m "MS Publisher Imagesetter"
echo Room %room% printer installed. Enjoy your new printer!