Results 1 to 5 of 5
Thread: Batch help
-
2019-05-06, 06:17 PM (ISO 8601)
- Join Date
- Aug 2011
Batch help
Anyone any good at basic batch files? My printer cue keeps jamming up and manually clearing it is a hassle, so I wanna make a batch file to:
- Stop the print spooler service
- Kill the print pipeline process
- Delete everything in the print cue (just delete everything in that folder)
- restart the print spooler service
Originally Posted by crayzzOriginally Posted by jere7my
-
2019-05-06, 08:26 PM (ISO 8601)
- Join Date
- Nov 2010
- Location
- California
- Gender
Re: Batch help
Might want to mention what OS you are on? Windows? Linux?
-
2019-05-06, 10:36 PM (ISO 8601)
- Join Date
- Aug 2011
Re: Batch help
Sorry, I thought batch was a windows only thing (wouldn't the linux equivalent be bash?).
Im using Windows 10.Originally Posted by crayzzOriginally Posted by jere7my
-
2019-05-07, 01:09 AM (ISO 8601)
- Join Date
- Oct 2011
- Gender
Re: Batch help
Not an expert at batch files but I think this will work.
Spoiler: Printer Stop Batch@ECHO OFF
net stop spooler
ECHO.
taskkill /F /IM printfilterpipelinesvc.exe
ECHO.
del %systemroot%\System32\spool\printers\* /Q
ECHO Print queue folder cleared.
ECHO.
net start spooler
ECHO.
ECHO Press Enter to exit.
set /p exit=
Exit
-
2019-05-07, 09:53 PM (ISO 8601)
- Join Date
- Aug 2011