Get available drives in windows?

Previous topic - Next topic

fuzzy70

Like the title says is this possible?.

The reason for asking is that I am currently writing an app & the user may want to load a file that is stored on another partition.

The FILEREQUEST$ command works great & allows me to do it obviously but it does not work in debug mode.

At the moment I am copying files to the media directory for testing which works but would be handy if I could select anyone I wanted no matter what disk it is on.

Cheers

Lee

Sent from my HTC Wildfire using Tapatalk 2

"Why don't you just make ten louder and make ten be the top number and make that a little louder?"
- "These go to eleven."

This Is Spinal Tap (1984)

fuzzy70

Quote from: Ocean on 2013-Apr-25
if you agree to using some inline code, this following page provides information about what API-functions to use...

http://stackoverflow.com/questions/327718/how-to-list-physical-disks

Thanks Ocean I will have a look into that & see if I can get something to work  :good:

In the mean time I have just posted an extended type in Code Snippets which basically uses the DISKPART command via a SHELLCMD(). Not a pretty way but works & its here http://www.glbasic.com/forum/index.php?topic=9154.0.

Lee
"Why don't you just make ten louder and make ten be the top number and make that a little louder?"
- "These go to eleven."

This Is Spinal Tap (1984)