Windows 7 - Help with Canceling a specific Spool job

General software, Operating Systems, and Programming discussion.
Everything from software questions, OSes, simple HTML to scripting languages, Perl, PHP, Python, MySQL, VB, C++ etc.
Post Reply
jw4914
New Member
Posts: 2
Joined: Wed Jan 07, 2015 1:35 pm

Windows 7 - Help with Canceling a specific Spool job

Post by jw4914 »

Okay, I need to create a batch command that clears a specific printer spool in a multi-printer
environment. Note: "net stop spooler, del windows\system32\spool\printers\*, net start spooler"
won't work because it clears everything.

Situation: I have 27 printers setup running simultaneously generating various label formats. Each
is triggered by a batch event. At the end of each batch event, I want to execute a clear command
for that specific printer without affecting the others.

My thought is if I can bring up a spooled job and select the "Cancel All Documents" for that specific
printer, I should be able to setup a batch command to do it. However, I have not been successful
in defining the "Cancel All Documents" for a specific printer spool.
User avatar
Philip
SG VIP
Posts: 11758
Joined: Sat May 08, 1999 5:00 am
Location: Jacksonville, Florida

Post by Philip »

The spool jobs should be in "C:\Windows\system32\spool\PRINTERS" .. You may want to look in there for the specific spool job, and delete that particular .spl file only (should be able to do it via a batch file as well). The spooler service will probably need to be stopped to be able to delete it though.

I hope this helps.
jw4914
New Member
Posts: 2
Joined: Wed Jan 07, 2015 1:35 pm

Post by jw4914 »

Thanks,,,, I tried that and the files come in as an LPR*.spl. It appears to be random and each print job is different.
Post Reply