Re: Application config file location

new topic     » goto parent     » topic index » view thread      » older message » newer message

This SO article should help: Difference between Program Data and AppData

richik jaiswal said...

To put it straight, ProgramData contains application data that is not user specific.This data which 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.

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

Reference links: Windows CSIDL and AppData

The environment variables to use are as follows:

Variable Default Path
%APPDATA% C:\Users\username\AppData\Roaming
%LOCALAPPDATA% C:\Users\username\AppData\Local
%ProgramData% C:\ProgramData

-Greg

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu