How to get Port name in c# ?
I know that we can get all port names by using
System.IO.Ports.SerialPort.GetPortNames()
method.But this method returns all port name as well as all Virtual COM port names.
For example, one of my PCs is not having any COM Port, but its having four USB Port. So now the function is returning the Port Count as four. But all the ports are Virtual COM Ports.
So How i do i get the Port names , is there any InBuilt functions for this. ?