Windows volumes

Phil Davis revdev at pdslabs.net
Wed Feb 7 13:50:31 EST 2007


Hi Richard,

Richard Miller wrote:
> How can I get a list of the full names of all currently running volumes 
> under Windows? I know there is a volumes function, but that only returns 
> the drive letters. I need to see the full names of these drives. Does 
> this require a shell command, and if so, what would that be?


On Windows, all the info you want is in the registry. That means you can get it 
very quickly with Rev's 'queryRegistry' function.

Check out these registry locations (or whatever they're called), and see how 
their values change as you mount, unmount, disconnect various storage devices:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Disk\Enum\

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\USBSTOR\Enum\


There may be other registry values you need as well, but I'm guessing the second 
one in the above list will help.

HTH -
Phil Davis



More information about the use-livecode mailing list