A place for shared ini-file

Posted: 07-06-2006, 10: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


Reply With Quote

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, 11: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

Reply With Quote
Tony Hoyle
Guest
Posts: n/a
 
Re: A place for shared ini-file
Posted: 07-06-2006, 11: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

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

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


Reply With Quote
 
LinkBack Thread Tools Display Modes
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may 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


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 07:37 AM
A place for shared ini-file Andrey Smolev Windows Vista File Management 4 07-06-2006 01:17 PM
Change the place of "My Documents" Darkliner Windows Vista File Management 8 06-14-2006 09:28 PM


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90