Is device Connected Windows?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • placid

    #1

    Is device Connected Windows?

    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 called foo.txt.


    Thanks in Advance

Working...