Home All Groups Group Topic Archive Search About
Author
26 Dec 2005 11:57 AM
Steve
Hi All and seasons greetings.

Is there an easy way of getting a list of current Comm ports on a machine?
I suspect that most machines these days have 1 and 2, but there could be
others and I would like to get a list of them to offer the end user.

Many thanks,
Steve.

Author
16 Jan 2006 1:59 PM
Jay Taplin
Here's the code (*borrowed* from Microsoft):

    Private Sub DisplaySerialPortNames()
        Dim sp As System.Collections.ObjectModel.ReadOnlyCollection(Of
String)

        For Each sp As String In My.Computer.Ports.SerialPortNames
            System.Console.WriteLine(sp)
        Next
    End Sub


For further info, check out Microsoft's site:

http://msdn2.microsoft.com/library/9wahf8t8.aspx


Show quoteHide quote
"Steve" <stephen.colema***@ntlworld.com> wrote in message
news:%UQrf.50827$7p5.24318@newsfe4-win.ntli.net...
> Hi All and seasons greetings.
>
> Is there an easy way of getting a list of current Comm ports on a machine?
> I suspect that most machines these days have 1 and 2, but there could be
> others and I would like to get a list of them to offer the end user.
>
> Many thanks,
> Steve.
>
>
>
Author
16 Jan 2006 2:01 PM
Jay Taplin
This is probably beside the point, but I really have needed to vent about
this for about three months... the new Dell systems are not shipping with
COM or keyboard ports any more, unless if you explicitely request the
adapter for an extra $15.00.  Apparently the world no longer has need for
COM ports.

Jay Taplin, MCP

Show quoteHide quote
"Steve" <stephen.colema***@ntlworld.com> wrote in message
news:%UQrf.50827$7p5.24318@newsfe4-win.ntli.net...
> Hi All and seasons greetings.
>
> Is there an easy way of getting a list of current Comm ports on a machine?
> I suspect that most machines these days have 1 and 2, but there could be
> others and I would like to get a list of them to offer the end user.
>
> Many thanks,
> Steve.
>
>
>