Canceling all print jobs when they get stuck

On Windows I often get to deal with issues like printers not doing their job and I have to come over just to find a print job stuck. Normally in this situation it just won’t cancel or delete and it’s hopeless to do anything.
To save me my valuable time I found this script, what it does is stops the print spool service and deletes all print job files, then starts it again.
Yeah Windows saves print jobs in files in “%systemroot%\system32\spool\printers”, so deleting everything in there does the job.

Here’s the script:

@echo off
net stop spooler
del %systemroot%\system32\spool\printers\*.shd
del %systemroot%\system32\spool\printers\*.spl
REM del %systemroot%\system32\spool\printers\*.*
net start spooler
pause
Subscribe
Notify of
guest

2 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments