Clear and Restart the Print Spooler with a Batch File

If clearing your print queue by restarting the Print Spooler service is something you think you’ll be doing more than once—or you’d just rather not go through the trouble of using the Services app—you can also create a simple batch file to do the job.
Fire up Notepad or your preferred text editor. Copy and paste the following text as separate lines into the blank document:

ßæÏ:
net stop spooler
del /Q /F /S "%windir%\System32\spool\PRINTERS\*.*"
net start spooler


Next, you’ll save your document as a .bat file. Open the “File” menu and click the “Save As” command. In the “Save As” window, browse to the location you want to save the file. On the “Save as type” drop-down menu, choose the “All files (*.*)” entry. Name your file whatever you like, but include “.bat” at the end. Click “Save” when you’re done.



You can now double-click that batch file to clear the print spooler whenever you want. Better yet, create a shortcut to the batch file and then place that shortcut where it makes the most sense to you—desktop, Start menu, or taskbar—and you’ll have one-click access to clear and restart the print spooler whenever you want.