Free Information Technology Magazines and eBooks

Saturday, March 20, 2010

Cancel A Stubborn Print Job

Cancel A Stubborn Print JobSometimes no matter how hard you click that cancel option on the list of pending print jobs, the stubborn task don't go away. There are two ways you can deal with this problem. First you can restart "spoolsv.exe" service by opening Services (type "services" from Run / Search box) and look for Print Spooler. Right click the Print Spooler service and choose Restart from the popup context menu. Another way to solve the stubborn print job problem is by using this batch file script.

Just copy the following script to notepad and name it as bat file (ex. cancelprint.bat).



@echo off
echo Stopping print spooler.
echo.
net stop spooler
echo Cancel all print jobs.
echo.
FOR %%A IN (%systemroot%\ system32\ spool\ printers\ \ *.*) DO DEL %%A
echo Starting print spooler.
echo.
net start spooler


Now every time you want to cancel a stubborn print job, just double-click the file and it will stop the print spooler service, delete the temp files, and restart the print spooler for you.

To save you from troubles, you can also download the bat file here.

To stay up-to-date on Technology news, subscribe now.

0 comments: