Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Is device Connected Windows?

Reply
Thread Tools

Is device Connected Windows?

 
 
placid
Guest
Posts: n/a
 
      06-01-2006
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

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Connection between a lan-connected pc and a wireless connected =?Utf-8?B?Q2lhY2NpaG9tZQ==?= Wireless Networking 1 08-17-2006 11:00 AM
Wireless connected but don't have LAN connected Thaqalainnaqvi@gmail.com Computer Support 6 06-11-2006 09:06 PM
connected but not connected =?Utf-8?B?R2xlbm4=?= Wireless Networking 1 12-04-2005 12:35 AM
problem: connected, but not connected to a wireless network Andrew Smith Wireless Networking 0 08-20-2004 07:51 PM
Connected Icon Showing, But In Reality Not Connected. Thoughts On ? Robert11 Computer Support 2 03-02-2004 04:02 PM



Advertisments