R – wmi .net to set serial port

netserial-portwmi

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.

Best Answer

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.