usb_info()

Prints additional info of USB device specified by its path in the output window.

Syntax

usb_info(path);

Parameters

Path USB device path
Return Value Returned value is 0 when device is connected. Returned value is 1 when device is not connected. Returned value is integer number.
0 - device is connected
1 - device is not connected

Examples

path = "\\?\hid#vid_045e&pid_028e&ig_00#8&1fa5fd5b&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}";
result = usb_info(path);

result:

0

Output:

Product: Controller (XBOX 360 For Windows)
Indexed(1): Controller (XBOX 360 For Windows)

See also

usb_list