Click here to Skip to main content
15,949,741 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear friends,
I can connect to an usb modem through a known commport (i.e. comm8). But i want my program to auto detect an usb modem and then connect.

Is there any way to automatically detect which port contains the modem?

Regards
SKPaul
Posted
Updated 2-Mar-12 0:53am
v3

1 solution

Use WMI and read this[^].
And read this[^].
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900