×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

How to change COM port number

How to change COM port number

How to change COM port number

(OP)
I need to write a program in VB6 to list all of the available COM ports on a computer and allow the operator to change the COM port number. I can get the list of available COM ports using the WMI but how to I change the COM port number?

I have to support a legacy program that looks for connections to devices on specific com ports. Genius that this original programmer was, he hard coded those com port numbers.

Currently we use a Digi edgeport with 4 serial ports. The Edgeport comes with a utility that allows you to change the COM port numbers. However we would like to move to single USB to serial devices (serialized of course), which do not provide the same type of utility. I would like to write a VB6 program to help with setup by allowing the user to connect a terminator to a serial port, send a message out to each available com port, and look for the response. Once the user identifies the serial port I want to allow them to change the com port number to one of the hard coded ports.

Of course they could use the device manager to change the com port numbers but I wanted to make an automated, easy to use utility, since the users will not be computer savy.

Any ideas?

Thanks,
quantum1976

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources