How many comm ports??

J

Janiek Buysrogge

Hi,

Using .NET 2.0:

Console.Writeline("Found " + SerialPort.GetPortNames().Length
+ " serial ports, enumerating:");
foreach (string s in SerialPort.GetPortNames())
{
Console.Writeline(s);
}

Janiek
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top