Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Should application log files and user generated data files be stored in APPDATA or PROGRAMDATA

We are migrating our APP to Win7. The program generates log files to help us support and also saves a number of dictionary files and settings files that are useful for the user though the user will rarely if ever actually want to interact with the files outside of our application. They can though because they are csv files. I built the first run through with using the APPDATA\LOCAL\OURAPPLICATION folder as the destination. Now I am wondering if it should be PROGRAMDATA\OURAPPLICATION.

I actually think the first choice is better because it seems that everything I have scanned suggests that the PROGRAMDATA folder should be considered untouchable by the user but as I am not a programmer I am not sure.

I hope this is the right place to ask this question

like image 953
PyNEwbie Avatar asked Jul 27 '11 15:07

PyNEwbie


People also ask

What is the difference between AppData and ProgramData?

Program Files is for storing the program itself, AppData is to store user specific information related to the program. (And ProgramData is to store not user-specific information related to the program).

What is stored in ProgramData folder?

On the other hand, the ProgramData folder has the general program files for all users, or, as Microsoft says, "this folder is used for non-user program data." For example, antivirus programs store their settings and virus logs within this folder to be available to all users on your computer instead of storing multiple ...

Is AppData the same as application data?

Every Windows Operating System contains a folder called AppData - short for Application Data. The AppData folder in Windows 10 is a hidden folder located in C:\Users\<username>\AppData. It contains custom settings and other information that PC system applications need for their operation.

What is the AppData folder used for?

The AppData folder contains custom settings and other information needed by applications. For example, you might find the following in your AppData folder: Web browser bookmarks and cache. Application configuration files.


1 Answers

The key point to consider is what the scope of the data is. If you are storing data that is associated with a specific user then you should use APPDATA and if you are storing data that is global to your program then you should use PROGRAMDATA.

Both APPDATA and PROGRAMDATA are hidden folders so the intent is for users not to be poking around in there (not that they couldn't if they wanted to).

like image 196
Randy supports Monica Avatar answered Sep 25 '22 07:09

Randy supports Monica