delete print job

S

sali

on xp, what is the efficient way to delete *ongoing* printing job, when
something with printer goes wrong [f.e. accidentally printer is reseted, all
previously sent font deffs are lost, and all next sent pages are just
producing endless ejected paper shits with garbage]

opened printer window is saying "job -xxx- deleting ...", but it is not
deleted, until printer is up again, and finish receiving current block of
commands.
why?
why is not possible to kill printing task [job] immidiatelly? not waiting
for printer to "come on"!
or, if possible, please help me, how?
i sometimes even need to kill spooler service to release job, is it realy
neccessary to do so?

any easier procedure?

thnx!
 
P

Pegasus \(MVP\)

sali said:
on xp, what is the efficient way to delete *ongoing* printing job, when
something with printer goes wrong [f.e. accidentally printer is reseted, all
previously sent font deffs are lost, and all next sent pages are just
producing endless ejected paper shits with garbage]

opened printer window is saying "job -xxx- deleting ...", but it is not
deleted, until printer is up again, and finish receiving current block of
commands.
why?
why is not possible to kill printing task [job] immidiatelly? not waiting
for printer to "come on"!
or, if possible, please help me, how?
i sometimes even need to kill spooler service to release job, is it realy
neccessary to do so?

any easier procedure?

thnx!

Your method is the most effective method:
1. Stop the spooler service.
2. Delete all spooled files.
3. Start the spooler service.
 
S

sali

Pegasus (MVP) said:
sali said:
on xp, what is the efficient way to delete *ongoing* printing job, when
something with printer goes wrong [f.e. accidentally printer is reseted,
i sometimes even need to kill spooler service to release job, is it realy
neccessary to do so?

any easier procedure?

thnx!

Your method is the most effective method:
1. Stop the spooler service.
2. Delete all spooled files.
3. Start the spooler service.


thanks for the encouragement.
btw, step 3 [restarting the service] is not neccessary, xp anyway restarts
it after few seconds [don't know does this behaviour depend on some
settings, it's the way it works on my computers]

but! killing spoller service is not a step ordinarly user could comfortable
perform!
when this happens, they are allready nervous and confused with printer's
malfunction, handfull of garbaged sheets being ejected from printer,
resetting [switch off/on] printer not producing visible benefit, being hurry
if they are working with clients/customers etc ... etc ...

the best i can imagine is to have some batch file or vbscript task to do
this operation on spooler stoping/clearing jobs automaticly [and to call it
from hotkey/desktop].

i know how to kill spooler service programaticaly, but how to programaticaly
clean all pending printer jobs for particular printer?

any idea, thnx
 
M

MAP

sali said:
the best i can imagine is to have some batch file or vbscript task to do
this operation on spooler stoping/clearing jobs automaticly [and to call it
from hotkey/desktop].
any idea, thnx

Here ya go, works every time.

I can't take credit for this I read it in another post about a year ago.
Create a new notepad doc. on your desktop or anywhere that you would like
and then copy and paste this into it.

@echo off
net stop "print spooler"
del /q "%SystemRoot%\system32\spool\PRINTERS\*.*"
net start "print spooler"
ping localhost -n 5 > nul


Now save and close the notepad doc. next rename it to
Kill Print Job.bat

When you run this batch file it will automatically stop the spooler
service,clear pending jobs then it will restart the spooler service.
Works for me :)
 
P

Pegasus \(MVP\)

MAP said:
sali said:
the best i can imagine is to have some batch file or vbscript task to do
this operation on spooler stoping/clearing jobs automaticly [and to call it
from hotkey/desktop].
any idea, thnx

Here ya go, works every time.

I can't take credit for this I read it in another post about a year ago.
Create a new notepad doc. on your desktop or anywhere that you would like
and then copy and paste this into it.

@echo off
net stop "print spooler"
del /q "%SystemRoot%\system32\spool\PRINTERS\*.*"
net start "print spooler"
ping localhost -n 5 > nul


Now save and close the notepad doc. next rename it to
Kill Print Job.bat

When you run this batch file it will automatically stop the spooler
service,clear pending jobs then it will restart the spooler service.
Works for me :)

This particular batch file comes out of my kitchen. Unfortunately
it does not address the OP's subsequent question: How to
delete jobs selectively for certain printers. Do you have a method
to achieve this?
 
S

sali

Pegasus (MVP) said:
MAP said:
sali said:
the best i can imagine is to have some batch file or vbscript task to do
this operation on spooler stoping/clearing jobs automaticly [and to call
Kill Print Job.bat

When you run this batch file it will automatically stop the spooler
service,clear pending jobs then it will restart the spooler service.
Works for me :)

This particular batch file comes out of my kitchen. Unfortunately
it does not address the OP's subsequent question: How to
delete jobs selectively for certain printers. Do you have a method
to achieve this?

well [it is not human regarding victims] but in this case i may agree:
if you can't kill just one, then kill them all!
 
M

MAP

Pegasus said:
MAP said:
sali said:
the best i can imagine is to have some batch file or vbscript task
to do this operation on spooler stoping/clearing jobs automaticly
[and to call it from hotkey/desktop].
any idea, thnx

Here ya go, works every time.

I can't take credit for this I read it in another post about a year
ago. Create a new notepad doc. on your desktop or anywhere that you
would like and then copy and paste this into it.

@echo off
net stop "print spooler"
del /q "%SystemRoot%\system32\spool\PRINTERS\*.*"
net start "print spooler"
ping localhost -n 5 > nul


Now save and close the notepad doc. next rename it to
Kill Print Job.bat

When you run this batch file it will automatically stop the spooler
service,clear pending jobs then it will restart the spooler service.
Works for me :)

This particular batch file comes out of my kitchen. Unfortunately
it does not address the OP's subsequent question: How to
delete jobs selectively for certain printers. Do you have a method
to achieve this?

Not unless you came up with that one as well! LOL
And thanks Pegasus I have a need to use your batch file on occasion.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top