Finding USB volumes on Win

Matthias Rebbe runrev260805 at m-r-d.de
Mon Mar 22 12:26:12 EDT 2010


Richard,

you could query all mounted devices from the shell

get shell("reg query  HKEY_LOCAL_MACHINE\SYSTEM\MountedDevices")

This return all mounted devices. You then just have to look for the specific one.
Not that what you expected, but maybe it helps.

Regards,

Matthias


Am 22.03.2010 um 16:53 schrieb Richard Gaskin:

> Another snag:
> 
> The key I need is named "\DosDevices\G:", at this path:
> 
> HKEY_LOCAL_MACHINE\SYSTEM\MountedDevices
> 
> So it would seem that if I escape the backslashes in the key name I'd be good:
> 
> get queryRegistry("HKEY_LOCAL_MACHINE\SYSTEM\MountedDevices\\\DosDevices\\F:")
> 
> But no go.
> 
> I've tried many different combinations of escapes, and no escapes at all, and no matter what I try the result says, "bad key" and the data returned is empty.
> 
> Any clues?
> 
> TIA -
> 
> --
> Richard Gaskin
> Fourth World
> Rev training and consulting: http://www.fourthworld.com
> Webzine for Rev developers: http://www.revjournal.com
> revJournal blog: http://revjournal.com/blog.irv
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution




More information about the use-livecode mailing list