Tim Golden wrote:
> [placid]
>
> | Just wondering is there a way (not brute force) to check if a usb
> | storage device is connected?
>
> Hmmm. How do you identify "a usb storage device" to know that
> it is or isn't connected?
>
> You can certainly do something useful with wmi. eg,
>
>
> import
[placid]
| Just wondering is there a way (not brute force) to check if a usb
| storage device is connected?
Hmmm. How do you identify "a usb storage device" to know that
it is or isn't connected?
You can certainly do something useful with wmi. eg,
import wmi
c = wmi.WMI ()
for usb_disk in c.W
Hi all,
Just wondering is there a way (not brute force) to check if a usb
storage device is connected?
The brute force method im talking about is doing a os.path.isdir() or
os.path.isdir() on all the drive letters from A-Z, because you know
that this usb device contains a folder called A or file