[python-win32] Getting a printer's port

Mike Driscoll mdriscoll at co.marshall.ia.us
Wed Aug 20 17:48:26 CEST 2008


Hi all,

I am in need of a way to get a printer's port with Python. I can get the 
name of a printer and the comments field (I think) using 
win32print.EnumPrinters(), but that's as close as I can get. Most of the 
printers in my organization are networked through Linux CUPS.

Any pointers are appreciated. We have Python 2.4 and the script will run 
on Windows XP machines.

Thanks!

Mike


More information about the python-win32 mailing list