Detect run from drive type

Phil Davis revdev at
Sat Dec 29 21:18:07 EST 2007

Hi Russell,

Check out my Rev USBDrive library at:

I need to update it with new features, but I think it might give you 
what you're looking for - or at least it'll give you a starting point.

Phil Davis

Russell Martin wrote:
> Does anyone know of a way to detect whether an app is being run from a
> removable drive? The goal being, if the app was run from a
> removable/writable drive (i.e. a usb keychain drive, but not
> necessarily a U3 volume), the app would then read & write its prefs in
> the folder it was run from, but if run from a fixed drive then it would
> read/write its prefs to the user's home directory.

More information about the Use-livecode mailing list