What is the difference between ProgramData and AppData?

Windows 7AppdataProgramdata

Windows 7 Problem Overview


I need to store some user-specific configuration data for my program. Both Application Data/AppData (in the user's directory) and ProgramData (in the root of the system drive) seem like reasonable places to put it.

What is the difference between Program Data and Application Data and which should I use?

Windows 7 Solutions


Solution 1 - Windows 7

To put it straight, ProgramData contains application data that is not user specific.This data will be available to all users on the computer. Any global data should be put in here.

AppData folder contains configuration settings, downloaded information/files for a particular user. So, for example any user specific preferences and profile configurations can be stored in the AppData folder. The AppData folder is further divided into three subfolders
Roaming - This folder contains data that can move with your user profile from a computer to another.
Local - This folder contains data that will not move with your user profile.
LocalLow - You can put in lowlevel access information such as information related to web browser running in a protected mode in this folder.

You can now decide depending on the type of information which would be the best place to store it.

Reference links: http://msdn.microsoft.com/en-us/library/windows/desktop/bb762494.aspx">Windows CSIDL and http://windows.microsoft.com/en-in/windows-8/what-appdata-folder">AppData</a>

Solution 2 - Windows 7

I think you should put all user specific files into appdata since it is located in

C:\Users\UserName\AppData

and Programdata is not specific to the user. It could be used, I think, to share data of your program when used by different users.

see this stackoverflow question

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionGaneshjaView Question on Stackoverflow
Solution 1 - Windows 7richik jaiswalView Answer on Stackoverflow
Solution 2 - Windows 7UserView Answer on Stackoverflow