tags:

views:

90

answers:

1

By default in windows application setting are saved in this directory:

%USERPROFILE%\Local Settings\Application Data\<Company Name>\<appdomainname>_<eid>_<hash>\<verison>\user.config

Is it possible to change path for saving user.config file? For example save it in local folder?

+3  A: 

You can, if you make your own ApplicationSettingsBase derived class to manage the application settings.

For details, see Application Settings Architecture.

That being said, I strongly recommend not doing this. Using a local folder (local to your app) will require your application to run under elevated permissions on Vista and Windows 7, which is an unnecessary annoyance. User settings files should be configurable via your application, and not something the user ever needs to see or hand-edit...

Reed Copsey