Jump to content
msd

Delete all failed jobs from the printer spooler

Recommended Posts

Hello,

 

I have a problem with failed printer jobs.

When I have one failed printer job, all the rest are on hold, and there are no prints.

So, I need some ideas on how to empty all or just failed printer jobs from the printer to free a new one.

I'm using Fats Report from Delphi, and if there are ideas from the Fast Report API, that is okay also.

 

Thanks in advance...

Share this post


Link to post
  1. Run a "command prompt" as administrator (=elevated).
  2. Enter the command Net Stop SPOOLER and confirm with the Enter key.
  3. Enter the command Del c:\windows\system32\spool\printers\*.*   and confirm.
    This will delete old print jobs. 
  4. Enter the command Net Start SPOOLER and confirm.
  5. Close the command prompt window.

 

 

You can easily put this code into a batch file (*.cmd), but remember that it must be run in elevated mode.


You can also write a Delphi program that performs the same steps, but its "bitness" should match that of your Windows version and the manifest must specify the execution level "require administrator".

 

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×