473,320 Members | 2,048 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Finding number of Com ports on a machine part 2

Hi,

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

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]
- 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

exist
on a machine, using C#?

rollasoc




Nov 15 '05 #1
0 1066

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: rollasoc | last post by:
Hi, I've worked out 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,...
0
by: Helge Jensen | last post by:
Having posted in microsoft.public.dotnet.framework.sdk and microsoft.public.dotnet.framework.wmi without receiving any response, I posthere on the off-chance that someone who isn't following those...
5
by: pb648174 | last post by:
If I am doing an Index Server query from SQL, such as: SELECT Q.* FROM OPENQUERY(FTIndexPM, ''SELECT path, characterization, rank, hitcount FROM SCOPE('DEEP TRAVERSAL OF ..... can anyone tell...
3
by: rollasoc | last post by:
Hi, Anyone know a way of working out the total number and which COM ports exist on a machine, using C#? rollasoc
2
by: news | last post by:
I am looking for help in finding a list of all active com ports. I have found a function to do it, but it is needs a GUID. What is the GUID of a com port? Am I barking up the wrong tree? Thanks
2
by: Jason | last post by:
Hello I'm about ready to attempt writting a simple TCP server in C# in which all I need to do is send out some data to a particular IP and port, and the end device will send it back to me. ...
5
by: =?Utf-8?B?SmVzc2VlIEhvbG1lcw==?= | last post by:
I'm not sure I'm going about this the right away, and I've attempted to search every online topic that I can which makes me think this is not possible or I'm simple coding this incorrectly. What...
1
by: DR | last post by:
What ports do i need to unblock on client and server (running msvsmon.exe) to debug remotely from my client box with visual studio 2005 pro? When I attach to remote process a connection shows up...
275
by: Astley Le Jasper | last post by:
Sorry for the numpty question ... How do you find the reference name of an object? So if i have this bob = modulename.objectname() how do i find that the name is 'bob'
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.