Writing to Win programm files dir?

Scott Kane scott at cdroo.com
Fri Jun 29 10:07:35 EDT 2007


From: "Tiemo Hollmann TB" <toolbook at kestner.de>

> Hello, I have read (but not deep enough) that you may not or should not 
> write into files in the programm files / subdir directory on Win Vista
> because of user rights management / virtual store or something like this. 
> Is this really a bad style or even a KO, which brakes something and you 
> should
> only use the application data directory for INI files and stuff like this, 
> or can I just go on, keeping everything thight together in my program 
> files
> folder?

For data storage it's out for Vista (by default).  Can be done under XP if 
the user is the admin but you can't rely on that anymore (we used to get 
away with it and shouldn't have been able to).  Vista will write your data 
out to virtual storage if UAC is turned on (default).  Best to write to My 
Documents or one of several folders under Documents and Settings.  In Rev My 
Documents is handy and is suported by the SpecialFolders function.

Scott Kane 




More information about the use-livecode mailing list