JohnG
03-12-2008, 04:45 PM
I have had this problem with customers in the past (and again this morning) using XP and Vista...they print a document and the queue will not delete the document, you know the spooler hangs, and other jobs get jammed. I have a script I use and thought some of you might like to add it to your tools. The only drawback is having to resend your jobs to the printer. Just copy the following text to notepad save as Print Spooler Purge.bat. Then you can assign your own icon as you see fit, you know, tailored for your business ;) and place it on the customers desktop...anyway I appreciate what the site/forum has given me, and thought I'd like to give back a small bit myself.
@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
@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