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" <hotmail@hotmai l.com> wrote in message
news:uF4OAI5nDH A.964@TK2MSFTNG P10.phx.gbl...[color=blue]
> Thank you Nicholas.
>
> "Nicholas Paldino [.NET/C# MVP]" <mvp@spam.guard .caspershouse.c om> wrote[/color]
in[color=blue]
> message news:OFJoLxvnDH A.2200@TK2MSFTN GP12.phx.gbl...[color=green]
> > rollasoc,
> >
> > Using the classes in the System.Manageme nt namespace, I would do a[/color]
> query[color=green]
> > 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]
> > - mvp@spam.guard. caspershouse.co m
> >
> > "rollasoc" <hotmail@hotmai l.com> wrote in message
> > news:u1t83rvnDH A.1948@TK2MSFTN GP12.phx.gbl...[color=darkred]
> > > Hi,
> > >
> > > Anyone know a way of working out the total number and which COM ports[/color]
> > exist[color=darkred]
> > > on a machine, using C#?
> > >
> > > rollasoc
> > >
> > >
> > >[/color]
> >
> >[/color]
>
>[/color]
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" <hotmail@hotmai l.com> wrote in message
news:uF4OAI5nDH A.964@TK2MSFTNG P10.phx.gbl...[color=blue]
> Thank you Nicholas.
>
> "Nicholas Paldino [.NET/C# MVP]" <mvp@spam.guard .caspershouse.c om> wrote[/color]
in[color=blue]
> message news:OFJoLxvnDH A.2200@TK2MSFTN GP12.phx.gbl...[color=green]
> > rollasoc,
> >
> > Using the classes in the System.Manageme nt namespace, I would do a[/color]
> query[color=green]
> > 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]
> > - mvp@spam.guard. caspershouse.co m
> >
> > "rollasoc" <hotmail@hotmai l.com> wrote in message
> > news:u1t83rvnDH A.1948@TK2MSFTN GP12.phx.gbl...[color=darkred]
> > > Hi,
> > >
> > > Anyone know a way of working out the total number and which COM ports[/color]
> > exist[color=darkred]
> > > on a machine, using C#?
> > >
> > > rollasoc
> > >
> > >
> > >[/color]
> >
> >[/color]
>
>[/color]