@ECHO OFF SET BASEDIR=C:\driver @echo off regedit /s "%BASEDIR%\reg\hp1200.reg" regedit /s "%BASEDIR%\reg\hp2600n.reg" REM # Restart the spooler service net stop spooler net start spooler REM # Remove existing printers with the same name so we don't get copy after copy REM # NOTE: start /wait makes us wait for rundll32 to finish before continuing ECHO ==================================== ECHO Deleting the Baxter Public printers ... ECHO (I'll be re-adding them in a minute. ECHO This does nothing if you have no Baxter ECHO Public printers currently installed.) ECHO ==================================== REM ECHO HP 1200 PCL ... REM start /wait rundll32 printui.dll,PrintUIEntry /dl /n "HP Laserjet 1200" /q ECHO HP 2600N... start /wait rundll32 printui.dll,PrintUIEntry /dl /n "HP Color Laserjet 2600n" /q ECHO Done. ECHO ===================================== ECHO. ECHO. ECHO ===================================== ECHO Adding all Baxter Public printers ... ECHO ===================================== REM ECHO HP 1200 PCL ... REM start /wait rundll32 printui.dll,PrintUIEntry /if /b "HP Laserjet 1200" /f "%BASEDIR%\HP Laserjet 4M Plus\lj456ps.inf" /q /r "IP_131.215.22.41" /m "HP LaserJet Series PCL 6" /z /u ECHO HP 2600N... start /wait rundll32 printui.dll,PrintUIEntry /if /b "HSS: Baxter 8a HP Laserjet 2100" /f "%BASEDIR%\HP Laserjet 2100\hpbf212i.inf" /q /r "IP_131.215.22.148" /m "HP LaserJet 2100 Series PCL 6" /z /u ECHO Done. ECHO ======================================