[python-win32] How to enumerate com ports?

Tim Golden mail at timgolden.me.uk
Fri Apr 3 09:25:26 CEST 2009


Alec Bennett wrote:
> I'd like to get a list of available com ports on a Windows machine. 
> I've seen some reference to a function EnumSerialPorts but can't 
> find any documentation.

You can get it from WMI via the Win32_SerialPort class

TJG


More information about the python-win32 mailing list