Check out Doug's blog. He has code that you can run that will make the data folder under your app be available for writing data without affecting the other security.
Rick White Light Computing, Inc. www.whitelightcomputing.com www.swfox.net www.rickschummer.com -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Whil Hentzen Sent: Saturday, November 22, 2008 08:01 PM To: [EMAIL PROTECTED] Subject: Environment vars in Vista not returning expected values I need to write data to various folders under both XP and Vista. (Duh.) We know that data can't go in Program Files\My Stupdendous App\Data any longer; common wisdom says C:\Documents and Settings\All Users\Application Data\My StupidAppData is the place we oughta be. I was under the impression, being Vistaless, that the ALLUSERSPROFILE environment var held the location of C:\Documents and Settings\All Users under Vista, but a beta tester is telling me On XP, ALLUSERSPROFILE=C:\Documents and Settings\All Users On Vista, ALLUSERSPROFILE=C:\ProgramData (a hidden System folder) I can verify that on XP, but not on Vista. Furthermore, they report that on Vista, the C:\ProgramData folder is not writable. Have they munged their box or do I have it wrong? (As an aside, APPDATA returns a user-specific folder, so I don't think that's what I want.) Whil [excessive quoting removed by server] _______________________________________________ Post Messages to: ProFox@leafe.com Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED] ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.