JSI Tip 10327. How can I easily delete all the print jobs in the queue?


I have scripted DeleteAllPrintJobs.bat to delete all the print jobs in the queue.

Pending print jobs are located in the %systemroot%\system32\spool\printers folder, unless you moved it.

If you want to delete all the print jobs in the queue, run DeleteAllPrintJobs.bat, using any of the following:

Start / Run / DeleteAllPrintJobs / OK
Open a CMD.EXE window and type DeleteAllPrintJobs
Double-click a shortcut to DeleteAllPrintJobs.bat

DeleteAllPrintJobs.bat contains:

@echo off
net stop spooler
ping 127.0.0.1 -n 4 >nul
del %systemroot%\system32\spool\printers\*.* /F /Q /S
ping 127.0.0.1 -n 3 >nul
net start spooler



Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish