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 youll be doing more than onceor youd just rather not go through the trouble of using the Services appyou 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, youll 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 youre 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 youdesktop, Start menu, or taskbarand youll have one-click access to clear and restart the print spooler whenever you want.