Get port name for a USB -serial adapter

We have an USB device working as a virtual com port. I would like to let my users get  this device to comunicating to this device without having to manually select a serial port.
how can I get/know the com port name/number and how can I know if the device is not connected?

LVL 3
dygjAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

robert_marquardtCommented:
I will implement a solution.
Needs Setup API and probably Config Manager API.

Please contact me directly so i can send you the files later.
robert_marquardt att gmx dott de
There was a problem when ginsonic tried to reach me.
Tell here if you do not reach me.

The "COMx" device is only existant if the device is plugged.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
robert_marquardtCommented:
For all interested in this question:
I will rework my Config Manager API conversion and make it available in the near future.
It will then include some examples for matching COM ports and safe removal of USB sticks.
0
dygjAuthor Commented:
Thanks for your help. My problem is solved.

Bjarte Dyngjeland
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Delphi

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.