Falcon1986-Online

Home of a med student who likes to manage websites and talk tech!

Posts Tagged ‘print

[HOW-TO] Force print queue purge when jobs get stuck

with one comment

fix-iconI know I am not the only person who experiences this from time to time. As a Windows user this might be a familiar irritation to you: A document is sent to print and all the printer does is choke up and refuse to print anything. Or maybe the document you sent is too large and is just taking too long to execute in the queue. Whatever your reason, you either end up having to restart the computer or power-cycling the the printer. Here, I will show you a simple way of clearing the printer queue using a batch script.

The batch script takes the manual effort out of purging the print queue. It turns off the Print Spooler, deletes the temporary files created from your print request, and restarts the Print Spooler. That’s all! You can do this manually, but why bother when double-clicking on a single file will do all of that for you?

Using a simple text editor such as Notepad or Notepad++, paste the following into a new file and, when ready to save, do so with quotes and a .bat file extension. For example, “force-print-purge.bat”.

@echo off
echo Stopping Spooler
echo.
net stop spooler
echo Deleting jobs in print queue...
echo.
del “%systemroot%\system32\spool\printers\*.shd”
del “%systemroot%\system32\spool\printers\*.spl”
echo Restarting Spooler.
echo.
net start spooler

The next time your printer is being stubborn, locate this file and execute it. You’re welcome.

Written by falcon1986

26 May, 2013 at 9:36 AM

Posted in Computers, Windows

Tagged with ,