• Home
  • About
  • Projects
  • Contact
  • Tech Tips
Tom Way Entertainment Technology

Clearing Print Queue and Forcibly Deleting Print Jobs

6/15/2016

0 Comments

 
Ever tried to print something from your Windows machine, only to have something go wrong with the printing and yet be stuck with print jobs that just won't be deleted? Every so often this happens to me. I'll print a document. Something perhaps is wrong with the printer, like it is jammed or out of paper. I'm short on time so I cancel the print job from the printer properties on my system. Only the job won't cancel. It just sits there in an error state, undeleteable.

I devised the following script to fix this problem. The script stops the the print spooler, deletes print jobs in the queue, then restarts the spooler. I have tested this on my Dell laptop and it works just fine. Use at your own risk on yours, of course, because, you know, lawyers.

printfix.bat


​@rem === Restarts print spooler service
@rem === Use this when the printer is printing 
@rem === lots of garbage or blank pages endlessly
@rem === Tom Way, 10/14/10, drtomway@gmail.com
@rem ### Updated to forceably delete print jobs
@echo off

@echo Stopping print spooler service
net stop spooler
sc query spooler

@echo Deleting print jobs
del /F /Q C:\Windows\System32\spool\PRINTERS\*.*

@echo Starting print spooler service
net start spooler
sc query spooler
pause
echo on

printfix.bat
File Size: 0 kb
File Type: bat
Download File

0 Comments

    Author

    Tom Way is a computer science professor, software engineer and entertainment professional who likes solving problems that challenge, vex or annoy him and others.

    Archives

    July 2019
    March 2017
    October 2016
    June 2016
    May 2016
    April 2016
    March 2016
    June 2015
    May 2015
    April 2015
    March 2015

    Categories

    All
    Backdrop
    DIY
    Google Chrome
    Omnibox
    PVC
    Set Construction
    Speed Up
    SUO File
    Theater
    Visual Studio

    RSS Feed

Powered by Create your own unique website with customizable templates.