Detect run from drive type

Richard Gaskin ambassador at
Sat Dec 29 20:42:44 EST 2007

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.

Mark Wieder wrote a DriveType external a while back, but I went a 
simpler route:  my apps just check to see if they can write to their 
application folder, and if they can they store prefs there, if not then 
they store prefs in the Prefs folder.

  Richard Gaskin
  Managing Editor, revJournal
  Rev tips, tutorials and more:

More information about the Use-livecode mailing list