Hi,
Using .NET 2.0:
Console.Writeline("Found " + SerialPort.GetPortNames().Length
+ " serial ports, enumerating:");
foreach (string s in SerialPort.GetPortNames())
{
Console.Writeline(s);
}
Janiek
On Wed, 1 Mar 2006 04:43:28 -0800, "James L"
<Ja****@discussions.microsoft.com> wrote:
Is there any code to get the number of comm ports detected by the pc?
Cheers.