All pastes #504956 Raw Edit

Mine

public text v1 · immutable
·published 2007-05-23 11:21 UTC
rendered paste body
@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 Mopier 240 PCL 5e" /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 Mopier 240 PCL 5e ...
REM start /wait rundll32 printui.dll,PrintUIEntry /if /b "HP Mopier 240 PCL 5e" /f "%BASEDIR%\C:\driver\HP Mopier 240 PCL 5e\HP012Ip5.inf" /q /r "IP_192.168.1.21" /m "HP Mopier 240 PCL 5e" /z /u
ECHO    HP Color LaserJet 2600n...
start /wait rundll32 printui.dll,PrintUIEntry /if /b "HP Color LaserJet 2600n" /f "%BASEDIR%\C:\driver\HP Color LaserJet 2600n\CLJ2600.inf" /q /r "IP_192.168.1.22" /m "HP Color LaserJet 2600n" /z /u
ECHO Done.
ECHO ======================================