I know we can find it out from the device Manager under ports. But I want to be able to get this info on command line so I can incorporate it in my python script. I looked at tools like WMI, Devcon. Devcon was able to list the USB devices connected to it but not which COM port the device is assigned to. Anybody knows a way to achieve this?
If it helps, my device I am trying to locate is USB Serial Converter
DEVCON Findall =USB
USB\VID_0403&PID_6001\AH02JYRN : USB Serial Converter
Thanks in advance!