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 22: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