Beefy Boxes and Bandwidth Generously Provided by pair Networks BBQ
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^3: USB Drive Letter Assignment in Win32

by ambrus (Abbot)
on Jun 06, 2004 at 18:28 UTC ( [id://361820]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to Re^2: USB Drive Letter Assignment in Win32
in thread USB Drive Letter Assignment in Win32

Any idea how to find a thumb drive?

You could try putting a file of certain name on the drive and search for that in the root of every drive. Else, you could just find the last valid drive letter, and you have some chance that it is the usb device. Or else you could just find the drive with the smallest capacity (excuding floppies), but that may fail to work later if usb devices get cheaper.

  • Comment on Re^3: USB Drive Letter Assignment in Win32

Replies are listed 'Best First'.
Re^4: USB Drive Letter Assignment in Win32
by Ninthwave (Chaplain) on Jun 06, 2004 at 18:36 UTC

    Or create a description file for each drive in its root. And have your scripts at startup that need particular drives scan these files. Or have a first run script that updates an index file so your scripts just read the index to find a resource. This sounds familiar????

    "No matter where you go, there you are." BB

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://361820]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.