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: http://www.revJournal.com
_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to