@echo off REM This is the actual spooler cleanup command. net stop spooler del %windir%\system32\spool\printers\*.* /q net start spooler