PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Search condition
  • Limits
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
USBFind (Function)
In French: USBRecherche
Finds a USB device according to keywords.
Example
sDevices is string
sDevices = USBFind(USBPropertyManufacturer, "PC Soft")
IF sDevices <> "" THEN
Info("Identifiers of PC Soft devices:", sDevices)
END
Syntax
<Result> = USBFind(<Property> , <Word 1> [, <Word 2> [, <Word 3>, ...]])
<Result>: Character string
String containing the identifiers of the USB devices found. If several USB devices are found, the identifiers are separated by CR characters (Carriage Return). These identifiers can be used by the USB functions.
<Property>: Integer constant
Option for the result details:
USBDriveUSB identifier corresponding to the name of a drive (for example, f:)
USBPropertyLocationPhysical location of the device
USBPropertyClassDevice class
USBPropertyDeviceDescDescription of the device
USBPropertyManufacturerName of the manufacturer
USBPropertyFriendlyNameExplicit name of the device
<Word 1>: Character string
String to find in the specified property.
<Word 2>: Optional character string
String to find in the specified property.
<Word 3>: Optional character string
String to find in the specified property.
Remarks

Search condition

In order for a device to correspond to the sort criteria, <Property> must contain all the specified <Word 1>, <Word 2>, <Word 3>. The search is not case sensitive (lowercase/uppercase characters).

Limits

This feature is available in Windows 2000 and later.
Components
WINDEVReports and Queries wd230std.dll
See also
Minimum required version
  • Version 10
This page is also available for…
Comments
USBFind(USBDrive, ..)


Function currently works for fixed media (memory sticks) only.
Matching a drive with a certain serial number to its drive letter involves scanning of all available drives of a computer (A: -> Z:), retrieving their serial number and looking for a match.
Jimbo
Apr. 26 2011