GLBasic forum

Main forum => GLBasic - en => Topic started by: fuzzy70 on 2013-Apr-25

Title: Get available drives in windows?
Post by: fuzzy70 on 2013-Apr-25
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

Title: Re: Get available drives in windows?
Post by: fuzzy70 on 2013-Apr-26
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 (http://www.glbasic.com/forum/index.php?topic=9154.0).

Lee