Click here to Skip to main content
15,883,705 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?

Updated 2-Mar-12 0:53am

1 solution

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

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