I am using mysettings to save user settings.
This config file is saved in this path:
c:\ Documents and Settings \ \ [Local Settings] Application Data\\\
Is possible to change this path? For example, in my case I save app data in "ProgramData" folder (Vista & W7) and I would like save this config file in the same folder. Is possible?
Thanks in advance
From my experience, If you say you will transfer the setting from Win XP to Vista or W7, It is not possible to fix the folder path.
However in one PC, You can Fix the folder path to ApplicationData\ApplicationName\anUgLycOde\ by sign your .exe by using sn tools. (the uglu code would change each time you rebuild and sign will prevent this).
But if you think to make a cross Win version, I suggest you not to use My Settings but to use Xml serialization. Create a class to define your setting, Load and Save it by using Xml Serialize and Deserialize. You can put in My Document or same folder with *.exe.
Here is the sample:
To use it simply as: