How to find available COM ports?

Framework v1.1 AFAIK doesn’t allow you to do this.

In 2.0 there is a static function

SerialPort.GetPortNames()

http://msdn.microsoft.com/en-us/library/system.io.ports.serialport.getportnames.aspx

Leave a Comment