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. Advertisements

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. Alan
    Replies:
    2
    Views:
    2,255
  2. nishadixit
    Replies:
    5
    Views:
    1,538
    Joe Discar
    Jun 1, 2005
  3. Tim Golden

    RE: Is device Connected Windows?

    Tim Golden, Jun 1, 2006, in forum: Python
    Replies:
    1
    Views:
    1,592
    placid
    Jun 5, 2006
  4. Replies:
    1
    Views:
    635
    santosh
    Nov 27, 2006
  5. Matt
    Replies:
    0
    Views:
    649
  6. Arihan Sinha
    Replies:
    9
    Views:
    297
    Arihan Sinha
    Oct 28, 2010
  7. max
    Replies:
    1
    Views:
    215
  8. guru
    Replies:
    4
    Views:
    602
    J. Gleixner
    Feb 18, 2009
Loading...