Ok, sussed how to find the 2 COM Ports on my motherboard ok, using
System.Management namespace and looking for Win32_SerialPort.
Problem now, is I have 3 COM Ports on USB connections, but can't seem to
find a way to query for them.
Any suggestions?
rollasoc
"rollasoc" <ho*****@hotmail.com> wrote in message
news:uF*************@TK2MSFTNGP10.phx.gbl...
Thank you Nicholas.
"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in message news:OF**************@TK2MSFTNGP12.phx.gbl...rollasoc,
Using the classes in the System.Management namespace, I would do a
queryfor all instances of Win32_SerialPort. This will return the information
about the port, as well as the number of ports on the system.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com
"rollasoc" <ho*****@hotmail.com> wrote in message
news:u1**************@TK2MSFTNGP12.phx.gbl...Hi,
Anyone know a way of working out the total number and which COM ports
existon a machine, using C#?
rollasoc