DOS Batch - Force Delete All Print Jobs

Get rid of these pesky print jobs.

Description:

Did you ever pull the paper out of your printer to stop it from printing? Then surly next thing you did was power cycling the printer to empty the printer buffer and then cancelling the print job from the printer spooler on your PC. The print job sometimes remains a long time in the printer queue before finally disappearing and allowing the next print job to be processed. This is annoying on my box it takes up to 5 minutes. Even rebooting the PC doesn`t help as it doesn`t empty the printer spooler.

This little batch gets it done. It temporarily stops the spooler service and removes all files from the printer queue. Beware though that all printer jobs will be deleted, not only the ones that got canceled.

Script: Download: BatchDeleteAllPrintJobs.bat  
1.
2.
3.
4.
5.
6.
7.
8.
@echo off
:$reference https://www.dostips.com/
:$reference https://support.microsoft.com/kb/946737
net stop spooler
del "%systemroot%\system32\spool\printers\*.shd"
del "%systemroot%\system32\spool\printers\*.spl"
net start spooler
pause