R
rollasoc
Hi,
Anyone know a way of working out the total number and which COM ports exist
on a machine, using C#?
rollasoc
Anyone know a way of working out the total number and which COM ports exist
on a machine, using C#?
rollasoc
Nicholas Paldino said:rollasoc,
Using the classes in the System.Management namespace, I would do a query
for 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]
- (e-mail address removed)
rollasoc said:Hi,
Anyone know a way of working out the total number and which COM ports exist
on a machine, using C#?
rollasoc
rollasoc said:Thank you Nicholas.
message news:[email protected]...rollasoc,
Using the classes in the System.Management namespace, I would do a query
for 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]
- (e-mail address removed)
rollasoc said:Hi,
Anyone know a way of working out the total number and which COM ports exist
on a machine, using C#?
rollasoc