@echo off net stop Spooler 1>nul ping -n 6 localhost del %SystemRoot%\System32\spool\PRINTERS\* /Q 1>nul ping -n 6 localhost net start Spooler