Is device Connected Windows?

Discussion in 'Python' started by placid, Jun 1, 2006.

  1. placid

    placid Guest

    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
    placid, Jun 1, 2006
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. nishadixit
    Replies:
    5
    Views:
    1,247
    Joe Discar
    Jun 1, 2005
  2. Tim Golden

    RE: Is device Connected Windows?

    Tim Golden, Jun 1, 2006, in forum: Python
    Replies:
    1
    Views:
    1,504
    placid
    Jun 5, 2006
  3. Replies:
    1
    Views:
    425
    santosh
    Nov 27, 2006
  4. Matt
    Replies:
    0
    Views:
    466
  5. Arihan Sinha
    Replies:
    9
    Views:
    176
    Arihan Sinha
    Oct 28, 2010
Loading...

Share This Page