A place for shared ini-file

Posted: 07-06-2006, 09:35 AM
Hello, All!

We have a problem with the default Vista security settings. We need a place
to save our ini file with setting and we want to allow any user to write to
this file. Previously we could use "C:\Documents and Settings\All
Users\Application Data" folder for this purpose but now even an
Administrator cannot even open this folder and folder
"C:\Users\Default\AppData" is read only for regular user. Could you give us
advice for any place where we can store our settings on Vista sysem?

Thanks.

With best regards, Andrey Smolev. E-mail: Andrey.Smolev@Mail.ru


A place for shared ini-file


Responses to "A place for shared ini-file"

Jimmy Brush
Guest
Posts: n/a
 
Re: A place for shared ini-file
Posted: 07-06-2006, 10:12 PM
C:\ProgramData\

I believe this is what you are looking for ... at first glance at the
security settings it doesn't appear to allow normal users write access, but
if you try it out or look in the advanced screens it works fine.

- JB

Tony Hoyle
Guest
Posts: n/a
 
Re: A place for shared ini-file
Posted: 07-06-2006, 10:43 PM
Jimmy Brush wrote:
> C:\ProgramData\
>
> I believe this is what you are looking for ... at first glance at the
> security settings it doesn't appear to allow normal users write access,
> but if you try it out or look in the advanced screens it works fine.
Don't hardcode it though... non-US versions probably won't call it that
(I asumme the 'All Users' path wasn't hardcoded...).

You get it by querying for CSIDL_COMMON_APPDATA with SHGetFolderPath.

OTOH looking at it you should *already* be using that since it
corresponds directly to the All Users\Application Data directory that
exists on XP.

I really hope the OP wasn't hardcoding that path...

Tony

Andrey Smolev
Guest
Posts: n/a
 
Re: A place for shared ini-file
Posted: 07-07-2006, 01:59 PM
Thanks, guys!!!
This information is very useful for us!

With best regards, Andrey Smolev. E-mail: Andrey.Smolev@Mail.ru


 
LinkBack Thread Tools Display Modes
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
LOCK DESKTOP ICONS IN PLACE Sandy J Windows Vista File Management 7 01-23-2008 03:37 PM
Can't use my shared WEP key to connect JamesD Windows Vista Networking & Sharing 1 11-13-2006 09:21 PM
vista can't connect network place canna Windows Vista Networking & Sharing 2 10-03-2006 06:37 AM
A place for shared ini-file Andrey Smolev Windows Vista File Management 4 07-06-2006 12:17 PM
Change the place of "My Documents" Darkliner Windows Vista File Management 8 06-14-2006 08:28 PM