Hi,
Anyone know a way of working out the total number and which COM ports exist
on a machine, using C#?
rollasoc 3 1593
rollasoc,
Using the classes in the System.Manageme nt namespace, I would do a query
for all instances of Win32_SerialPor t. 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.co m
"rollasoc" <ho*****@hotmai l.com> wrote in message
news:u1******** ******@TK2MSFTN GP12.phx.gbl... Hi,
Anyone know a way of working out the total number and which COM ports
exist on a machine, using C#?
rollasoc
Thank you Nicholas.
"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard .caspershouse.c om> wrote in
message news:OF******** ******@TK2MSFTN GP12.phx.gbl... rollasoc,
Using the classes in the System.Manageme nt namespace, I would do a
query for all instances of Win32_SerialPor t. 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.co m
"rollasoc" <ho*****@hotmai l.com> wrote in message news:u1******** ******@TK2MSFTN GP12.phx.gbl... Hi,
Anyone know a way of working out the total number and which COM ports exist on a machine, using C#?
rollasoc
Hi,
Ok, sussed how to find the 2 COM Ports on my motherboard ok, using
System.Manageme nt namespace and looking for Win32_SerialPor t.
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*****@hotmai l.com> wrote in message
news:uF******** *****@TK2MSFTNG P10.phx.gbl... Thank you Nicholas.
"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard .caspershouse.c om> wrote
in message news:OF******** ******@TK2MSFTN GP12.phx.gbl... rollasoc,
Using the classes in the System.Manageme nt namespace, I would do a query for all instances of Win32_SerialPor t. 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.co m
"rollasoc" <ho*****@hotmai l.com> wrote in message news:u1******** ******@TK2MSFTN GP12.phx.gbl... Hi,
Anyone know a way of working out the total number and which COM ports exist on a machine, using C#?
rollasoc
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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, but can't seem to
find a way to query for them.
Any suggestions?
|
by: Robb Gilmore |
last post by:
Hi,
Can anyone tell me how to get a list of which COM ports are available on the
machine? I want to let the user choose from a dropdown list of COM1, COM2,
etc which port he has attached a device to. Can't find a way to get that
list.
thanks
Robb
|
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 me which TCP/UDP ports will be used between the SQL
Server and the Index server if the Index Server is on another machine?
I'm doing the query from...
|
by: bwmiller16 |
last post by:
Why are 2 ports required for a HADR Pair?
Environment: RH Linux AS3
UDB Express 8.2 with HADR Option
Folks -
Working with HADR and getting this setup to work right.
|
by: rollasoc |
last post by:
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?
| |
by: Wei Wang |
last post by:
hi,
I just took over a project done by somebody else of some C extension of
Postgresql 7.1.3. And now I have to port it to pl/pgsql. The guy who
developed it said he didn't get it running under 7.2 for some reason. And I
suspect it might not run properly under 7.4.1. Since I only have one machine
so I really hope that I could run 7.1.3 and...
|
by: Jean-Guillaume LALANNE |
last post by:
Hi,
I am pretty new to the postgresql community.
My question may seem a little bit strange but
I'd like to know if it is possible to run 2
postgresql processes with 2 separate databases on the
same machine (change of the ports, different paths to
logs, ...)?
Thanks in advance for your answers.
|
by: Michael Butscher |
last post by:
Hi,
this is not really Python-specific but I need it for Python.
I'm wanting a method for interprocess communication which is OS-
independent (sockets would be the normal way to go), but which works if
multiple users use the machine at the same time so that one user has no
access to the communication of programs of another user.
...
|
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 I'd like to do is this:
1) See hot many COM ports are on a computer: foreach (string port in
SerialPort.GetPortNames()) ....
2) Uniquely and...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it. ...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |