What is the right place to store program data files which are the same for every user but have to be writeable for the program? What would be the equivalent location on MS Windows XP? I have read that C:\ProgramData is not writeable after installation by normal users. Is that true? How can I retrieve that directory programmatically using the Platform SDK?
Vista and ProgramData
directoryprogramdatasharedwindows-vista
Related Topic
- .net – Write in “ProgramData” folder (W7 and Vista) .NET
- Linux – How to change permissions for a folder and its subfolders/files in one step
- Nullsoft installer, howto make ProgramData subfolder writable
- Windows – the significance of the ProgramData folder in Windows
- C# – How to get the application specific data folder (ProgramData)
Best Answer
SHGetFolderPath() with CSIDL of CSIDL_COMMON_APPDATA.
Read more at http://msdn.microsoft.com/en-us/library/bb762181(VS.85).aspx
If you need the path in a batch file, you can also use the %ALLUSERSPROFILE% environment variable.