USBFind(..) command

WD12: USBFind(DriveLetter, ..) doesn’t work
WD14/15: USBFind(DriveLetter, ..) works for memory sticks only
 
One of the few, but important USB related commands in WinDev doesn’t fully work! In versions up to WD12 it couldn’t locate any drive. Now, in WinDev 14 v30f and WinDev 15, USBFind(..) is only able to locate memory sticks but not removable USB-hard drives! However, the related project shows how to read information from USB devices - amongst them is the unique serial number of a USB-device. This unique serial number enables us to create a solution for cheap copy protection for our software using a simple memory stick!
 
Download:
http://www.windev.at/files/USB_Drive.zip
 
Note1: seemingly, it’s very hard to find the Drive letter of a connected USB-drive and identify the correct status of connected / disconnected. If you want to get more detailed but not necessarily more accurate info about the USB drives on a certain system, you could use the free utility USBDeview from NirSoft in command line mode and analyse the results:
http://www.nirsoft.net/utils/usb_devices_view.html
(source code available!)
 
Note2: Another source for getting properties of USB-devices - but not the drive letters! - is by scripting. While vbscripts without digital signatures are mostly identified as virus activities, it may well be that you could do it by using PowerShell, which is activated by standard in Windows 7 and Windows 2008. Example:
gwmi Win32_USBControllerDevice -computername MyComputer
would list all USB-devices of any accessible computer within the network.
 
 
BuiltWithNOF
[Home] [English] [WX Links] [Deutsch] [Impressum] [Downloads] [RADTranslate] [Upper] [NullValues] [TableOnStructure] [HFClassicHFSQL] [RAD11] [USBFind] [Color Contrast] [Dec. Separator] [Setup Problems] [Directories] [Help Authoring] [Access CHM] [Make GUID] [HOpen Files] [Reset Table] [Int. Gen. Number] [TAB-Control] [fDataDir.. commands] [Calendar Weeks] [Input & check EAN 8/13] [Test_for_Dups] [Feiertage] [MemStick as Dongle] [Get Date & Time] [German phone book]