|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Comm PortsHi 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. 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. > > > 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. > > >
Display the contents of a folder in a listbox?
how to prevent multiple instances of 2nd form? reuse query results for multiple object populations? (and dynamic variable names?) How do I extract a page from word and insert into a new word document using VB OFF TOPIC: Famous failed IT projects Webbrowser & XML Reading dll-Functions and execute them Question on VB.Net security for the application to run on network drive how to kill a thread Is MDI supported by .Net? |
|||||||||||||||||||||||