Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

Find Com Port in WMI Based on VID and PID

$
0
0

   I am at a loss. I have a virtial com port installed (COM35). if I look at the properties of it in Device Manage (Hardware IDs) the VID is 403 and the PID is 6001. The actual port number could change simply by unplugging the USB cable and plugging it in to a different USB port. The VID and PID, however, will stat the same.

 

   Is there any way to write a script that will look through the WIM (or registry for that fact) and look for the VID and PID and return the resultant ComPort? I.E. If the actual ComPort# changes I can still find the ComPort# based on VID and PID? 

 

 


Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>