How to force clearing of print buffer without restart.

  • Thread starter Thread starter Steve
  • Start date Start date
S

Steve

Need to force the print buffer to clear all print jobs without restarting
computer. Problem occurs in Word and Excel.
 
Steve said:
Need to force the print buffer to clear all print jobs without restarting
computer. Problem occurs in Word and Excel.

This batch file ought to do it:

@echo off
echo.
echo Purging the print queue . . .
net stop Spooler
echo Deleting all print jobs . . .
ping localhost -n 4 > nul
del /q %SystemRoot%\system32\spool\printers\*.*
net start Spooler
echo Done!
ping localhost -n 4 > nul

Bill
 
Back
Top