Win2000 / XP stop printing. Bat

Time:2021-9-18

Copy codeThe code is as follows:
@ECHO   Please turn off the printer first
@ECHO OFF
PAUSE
NET STOP SPOOLER
DEL C:\WINDOWS\system32\spool\PRINTERS\*.*  /Q
NET START SPOOLER