how to retrieve info about print jobs

Simon Brunning simon.brunning at gmail.com
Thu Jun 2 08:06:21 EDT 2005


On 6/2/05, Guy Lateur <guy.lateur at b-b.be> wrote:
> We have several printers in our company network. I would like to know if it
> is possible to check the current print jobs/queues for each of them. That
> way, if a user wants to print something (big), I could give her a hint as to
> which printer would get the job done first. We're using win2k and xp, btw.

You can probably do this with WMI. Ah yes, see
<http://www.c-sharpcorner.com/Code/2002/May/IntPrinterQWMI.asp>.

You can drive WMI from Python with Tim Golden's WMI module -
<http://tgolden.sc.sabren.com/python/wmi.html>.

Do let us know what you come up with!

-- 
Cheers,
Simon B,
simon at brunningonline.net,
http://www.brunningonline.net/simon/blog/



More information about the Python-list mailing list