I have a soft modem that I access through a vb program. The following code snippet
finds 1 port, which used to be COM1. Every few months, through no action on my part that I'm aware of, the port number increases by 1. It's now up to COM6. Why does this happen? Device Manager > Ports shows Communications Port as COM1. Device Manager > Modems shows my soft modem, and under Properties it shows the location as Port_#0005.Hub_#0002. (I'm not sure what this means.)
Why does Device Manager show the Communication Port as COM1, yet My.Computer.Ports shows it (currently) as COM6? How can I change it to COM1 and keep it there?
Code:
Dim sp1 as String
For Each sp1 In My.Computer.Ports.SerialPortNames
Debug.Print(sp1)
Next
Why does Device Manager show the Communication Port as COM1, yet My.Computer.Ports shows it (currently) as COM6? How can I change it to COM1 and keep it there?