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:
diskraider
2021-12-19 22:10:14 -05:00
committed by wh1te909
parent 859dc170e7
commit 9e439fffaa

View File

@@ -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