I am sometimes at a computer where others walk away from it and there
are items in the printer queue.
Then when I print something, I have to wait while other pages come
out.
Thanks,
Andy
wmic printer call cancelalljobs
Perhaps you need to identify your printer. For example:
wmic printer where name="HP LaserJet" call cancelalljobs
For a one-off or rarely occurring occasion, cancelling the print job
from the GUI (command: control printers) seems simple enough.
In addition to 01MDM's response, you can see how to cancel all print
jobs by inspecting %systemroot%\system32\prnqctl.vbs or simply use that
script as is:
cscript prnqctl.vbs -x -p "the printer name"
If you don't know the printer's name, use:
cscript prnmngr.vbs -g
or
cscript prnmngr.vbs -l
If you want to use a single command:
wmic printer where name="the printer name" call CancelAllJobs
or shorter
wmic printer "the printer name" call CancelAllJobs
--
Michael Bednarek http://mbednarek.com/ "POST NO BILLS"
How would you like it if someone canceled your print job because you stepped
away for a moment ???? Why not get a cup of coffee while waiting??
I am talking about "leaving the building" kind of stepping away.
Andy
Thanks, I did not mention that would it be running on Vista.
And I can run cmd as an Admin.
Andy
I guess they want their print jobs done when they come back later. Why not
request that they set a low priority and then you can set the highest and your
job would run after the current job completes.
If you had started a log print job and left for the night and came back to find
it had been canceled you would be upset I am sure.
This is at a Senior Center. :-)
Andy
Try if this applies in your situation
129} Is it possible to stop and reset the print spooler with a script?
http://www.netikka.net/tsneti/info/tscmd129.htm
All the best, Timo
--
Prof. Timo Salmi mailto:t...@uwasa.fi ftp & http://garbo.uwasa.fi/
Hpage: http://www.uwasa.fi/laskentatoimi/english/personnel/salmitimo/
Department of Accounting and Finance, University of Vaasa, Finland
Useful CMD script tricks http://www.netikka.net/tsneti/info/tscmd.php
Unfortunately, I don't have enuf access to use it.
Is there something similar that will work for the current computer and
user ?
Thanks,
Andy
> Unfortunately, I don't have enuf access to use it.
By nature the task is such that it is not surprising that admin
privileges are needed. In principle, there might be other spooled jobs
than yours in the queue.
> Is there something similar that will work for the current computer and
> user ?
Unfortunately, I do not have such a solution. Is there any way you could
"run as" admin from that ordinary user account? Of course, you would
need to know the admin password. But you would not need actually
change the user.
All the best, Timo
--
Prof. Timo Salmi mailto:t...@uwasa.fi ftp & http://garbo.uwasa.fi/