1 Votes |
Relevance #2998466
Relevance
* Results in a true/false |

/* Warning: This is very slow, and not recommended for use within a fixlet's or task's relevance! */ unique values of (string values whose (it != "Generic volume" AND it != "HID-compliant consumer control device" AND it != "HID-compliant device" AND it != "USB Composite Device" AND it != "Generic USB Hub" AND it != "USB Input Device" AND it does not start with "USB Root Hub") of selects (("Caption from Win32_PnPEntity where DeviceID='" & it as string & "'") of preceding texts of lasts "%22" of following texts of lasts "=%22" of (string values of selects "Dependent from Win32_USBControllerDevice" of wmi )) of wmi)
Property Details
Sharing
Relevance Image Sharing: |
Social Media: |
Comments
![]() |
|
Thanks! This is so old I don't remember why I wrote it. I'll have to dig into this a little deeper sometime. |
![]() |
|
/* full one if someone is interested. It takes roughly 1/4 of the time vs the original one on my pc */ unique values of string values whose (it != "Generic volume" AND it != "HID-compliant consumer control device" AND it != "HID-compliant device" AND it != "USB Composite Device" AND it != "Generic USB Hub" AND it != "USB Input Device" AND it does not start with "USB Root Hub") of selects ("Caption from Win32_PnPEntity where DeviceID='§'" & concatenation "" of (" or DeviceID='" & it & "'") of preceding texts of lasts "%22" of following texts of lasts "=%22" of (string values of selects "Dependent from Win32_USBControllerDevice" of it)) of wmi |
![]() |
|
/* late to the party and a brutal solution, but it is *much* faster :) */ unique values of string values of selects ("Caption from Win32_PnPEntity where DeviceID='§'" & concatenation "" of (" or DeviceID='" & it & "'") of preceding texts of lasts "%22" of following texts of lasts "=%22" of (string values of selects "Dependent from Win32_USBControllerDevice" of it)) of wmi |