Finds a USB device according to keywords.
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 N>]]])
<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
Detailed option of result: | |
USBDrive | USB identifier corresponding to the name of a drive (for example, f:) |
USBPropertyClass | Device class |
USBPropertyDeviceDesc | Description of the device |
USBPropertyFriendlyName | Explicit name of the device |
USBPropertyLocation | Physical location of the device |
USBPropertyManufacturer | Name of the manufacturer |
<Word 1>: Character string
String to find in the specified property.
<Word 2>: Optional character string
String to find in the specified property.
<Word N>: Optional character string
String to find in the specified property.
Remarks
Search condition
In order for a device to match the sort criteria, <Property> must contain all the <Word 1>, <Word 2>, <Word N> specified. The search is not case sensitive (lowercase/uppercase characters).