View Single Post
  #8  
Old March 9th 10, 08:05 PM posted to microsoft.public.windowsxp.print_fax
John John - MVP
external usenet poster
 
Posts: 780
Default Print Job will not delete

To tell you the truth I have never left the files there so I don't know
what happens if you leave them there. I think that the spooler might
try to run the print job again but I'm really not sure. Do you have any
of these old leftovers files in your printers folder? Maybe there is
something in the file header that just tells the spooler to ignore the
files... just a guess. I know that if you have multiple print jobs in
the queue you can try to delete only the right .shd & .spl files and the
other remaining print jobs should be processed when the spooler is
started again. Maybe these can shed more light on the subject:

http://support.microsoft.com/kb/162365
How to Delete Print Jobs That Will Not Print

http://support.microsoft.com/kb/264662
Leftover SPL, SHD, and TMP Files Remain in the Spool Directory After All
Print Jobs Are Complete

http://technet.microsoft.com/en-us/l.../cc976781.aspx
Local Print Provider

I don't know what causes this delay or hang when trying to delete some
of these print jobs, all I know is that it's been that way since NT4 so
I have come to accept it as one of these buggy NT print spooler things.

John

Paul Baker [MVP, Windows Desktop Experience] wrote:
John,

That's what I do, but I did not think to delete those files. If I don't, are
they just harmless orphaned files?

What is causing the delay? Is it waiting on a third party component?

Paul

"John John - MVP" wrote in message
...
Michael Dobony wrote:
Ok, why does it take forever to delete a print job? The printer ran out
of
black ink and I canceled and deleted the job. An hour later the job was
still deleting. This seems to be a common problem with all versions of
Windows. It also prevents one from getting on with other print jobs.

It's always been like that on NT versions. Stop the Spooler service and
then delete the files in the %Systemroot%\system32\spool\PRINTERS folder
and then restart the Spooler service again. From the Command Prompt:

net stop spooler
del /q %SystemRoot%\system32\spool\printers\*.*
net start spooler

MVP Pegasus has often posted this little batch file where he has added a
ping command to delay the batch commands to allow more time for the
spooler service to stop and start. You can use this batch file to do the
job for you:

@echo off
echo.
echo Purging the print queue . . .
net stop Spooler
echo Deleting all print jobs . . .
ping localhost -n 4 nul
del /q %SystemRoot%\system32\spool\printers\*.*
net start Spooler
echo Done!
ping localhost -n 4 nul

John



Ads