Change timeout method
The current timeout results in an error "ERROR: Input redirection is not supported, exiting the process immediately.". Reusing the ping tool to act as a timeout resolves this error because the batch script is not producing a user interruptable timeout but will still produce a 4-5 second timeout.
This commit is contained in:
@@ -2,8 +2,8 @@
|
||||
|
||||
sc stop spooler
|
||||
|
||||
timeout /t 5 /nobreak > NUL
|
||||
ping 127.0.0.1 -n 6 > nul
|
||||
|
||||
del C:\Windows\System32\spool\printers\* /Q /F /S
|
||||
|
||||
sc start spooler
|
||||
sc start spooler
|
||||
|
||||
Reference in New Issue
Block a user