Reputation: 7931
I have a usb serial adapter that plug and plays at COM9 or higher on many systems. A third party package I am using in my software can only connect up to COM8. Is there some way to set a COM9 down to a lower port using WMI or something? I know I can do this in the port settings dialog in device manager, but it's easier for my end users if I can do this silently in software for them.
Upvotes: 3
Views: 835
Reputation: 27314
I use this example to turn network adapters on and off. I'm not 100% positive since I haven't done it, but you may be able to use the same methodology to programatically navigate the Control Panel and do the "port dialog" stuff for them.
Upvotes: 1
Reputation: 20360
This might help, not sure if that is a good solution for you
http://com0com.sourceforge.net/
i think you can get the source code so you can see how to do it yourself.
Upvotes: 1