I am able to check com ports with my program written in c#. As you know when you make a connection between pc and Arduino it arranges specific COM port for it like: Arduino Uno(com6). But I would like to specify COM port for arduino to com5 automatically. It can be changed manually using this direction: My Computer -> Manage -> Device Manager -> Ports -> Communications Port -> Port Settings -> Advanced -> COM Port Number
I need to connect it via com5 in a shortway in any computer with my program.
How can I make it?
I already checked relevant subjects for solution.But They couldn't solve it too.
C# how to change a COM port to an specified one
https://www.codeproject.com/questions/451510/how-to-change-known-com-port-to-com-automatically
http://forums.codeguru.com/showthread.php?375882-How-to-change-COM-port-number
Is there anyway to make it work in C#?