in reply to Checking for a USB Dongle
If you are on windows you could use WMI to query the Win32_USBControllerDevice and Win32_PnPEntity classes.
Here is a howto in WSH, it'd take a little translating to perl using the WMI functionality in the Win32::OLE package.
How Can I Determine Which USB Devices are Connected to a Computer?
|
|---|