PDA

Click to See Complete Forum and Search --> : Detect USB


A@Ce
Feb 18th, 2009, 07:47 AM
I have a USB device,When it is connected to my computer, the USB device becomes a COM PORT.

How do I do the following:
(1) I need to know if the device is presently plugged into my computer yes or no
(2) The device, when plugged into my computer becomes a "COM<some number>"
On my computer it becomes COM9, on somebody elses computer it becomes a different random COM<number>.

I need to determine the exact name of the COMPORT for my special USB device.and the COM port number for this device?


I know the Device id and Product ID.

Jim Davis
Feb 18th, 2009, 04:58 PM
The following examples might be interesting for you.

http://planetsourcecode.com/vb/scripts/ShowCode.asp?txtCodeId=45360&lngWId=1
http://planetsourcecode.com/vb/scripts/ShowCode.asp?txtCodeId=60388&lngWId=1
http://planetsourcecode.com/vb/scripts/ShowCode.asp?txtCodeId=56195&lngWId=1
http://planetsourcecode.com/vb/scripts/ShowCode.asp?txtCodeId=58555&lngWId=1