Menu Close

How to Clear Hung Print Jobs With a Quick and Simple Batch File [Windows]

print job hung.jpeg

I don’t know about you, but hung print jobs are the bane of my Windows existence. Have you ever had the “canceling . . .” message that just won’t go away? If you have, there is a simple way to purge your Windows print jobs, using a batch file.

To create the batch file, open a text editor, and copy and paste this text into it:

net stop spooler
del %systemroot%\system32\spool\printers\*.shd
del %systemroot%\system32\spool\printers\*.spl
net start spooler

Save the file with a name of your choosing, and ending with a .cmd suffix, such as killprintjobs.cmd. Just make sure that it ends with the .cmd suffix.

Now, whenever you have a stuck print job that just won’t go away, double click that file to clear the print job. I keep that file on my desktop for such pesky moments. Do you have any tricks that you use when stuck in printer hell?