Saturday 21 July 2012

Cancel a Print Job Without Waiting Years



Ever tried canceling a print job in Windows but feel like it takes ages before anything actually happens? 
Windows is unable to cancel print jobs while the temporary file created for the print job is still being used by Windows. The solution: You've got to stop the spoolsv.exe service in the Windows Task Manager, delete any outstanding print jobs in the C:\Windows\system32\spool\printers\ directory, restart the spoolsv.exe service, and then start printing again. That's a lot of work to do manually, particularly if this is a problem you run into regularly, 

Here is the script for a batch file; just copy this to a new text document and save as "Clearprint.bat"
@echo off
echo Stopping print spooler.
echo.
net stop spooler
echo deleting stuff... where? I'm not sure. Just deleting stuff.
echo.
del "%systemroot%\system32\spool\printers\*.shd"
del "%systemroot%\system32\spool\printers\*.spl"
echo Starting print spooler.
echo.
net start spooler

 When click the Clearprint.bat file all the print request will be deleted & printer is ready to accept new request

0 comments:

Post a Comment

Related Posts Plugin for WordPress, Blogger...

Sample text


Advertisement

 

Copyright 2008 All Rights Reserved saparavur theme by SA PARAVURr Converted into Blogger Template by SA PARAVUR