I was having problems with my CPU running on 100%, so I kept digging and asking questions and found out it was the printing spool. I tried to delete, but that was happening, until I discovered your wonderful words of advice. My computer is up and going again, thanks to your batch file. Much appreciated.
Quote:
|
Originally Posted by t1janpr33
A while ago I suffered also with the same problem on a few local machines and one time on a printerver.
I've created a batchfile that will stop the spoolerservice, delete all existing SPL and SHP files, then restart the spoolerservice (If you are not authorised to run this batchfile, you will see some errors. This is because you need Administrator rights to run this kind of batchfile. Contact your local Administrator if needed):
@echo off
cls
net stop spooler
del %systemroot%\system32\spool\*.spl
del %systemroot%\system32\spool\*.shd
net start spooler
Do not use this solution unless you are sure that nobody is printing (when you have a printerserver) because ALL pending print-requests will be deleted without warning.
I've also made another batchfile that will delete ALL *.spl and *.shd on the c:\ drive. Use this one only when you are sure that you have no other files with a *.spl and/or *.shd extention:
@echo off
cls
net stop spooler
del c:\*.spl /s /q
del c:\*.shd /s /q
net start spooler
|