how to retrieve info about print jobs

Guy Lateur guy.lateur at b-b.be
Thu Jun 9 11:18:57 EDT 2005


Hmm, this only seems to work for jobs that originate on the machine running 
the script. I really need something that actually gathers the info from the 
printers (net-based). Would that be possible at all?



"Simon Brunning" <simon.brunning at gmail.com> schreef in bericht 
news:mailman.392.1117713984.18027.python-list at python.org...
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