Application config file location
- Posted by ryanj Apr 29, 2016
- 1652 views
Forked from RedyCode - new features
ryanj said...
- Application Config System makes it very easy to store user preferences, settings, etc. The toolbar settings and window positions are automatically stored in the application's default config file, which is automatically generated in the same folder as the app's exw/exe file.
sequence cmdline = command_line() sequence DefaultConfigFile = pathname(cmdline[2]) & "\\" & filebase(cmdline[2]) & ".cfg"
The default behavior of redy's config file system assumes that the program has write access to it's own folder and works as a "portable" program. Is this a good practice?
What about cases where an application should be installed properly and needs to store config files in each user profile? How should a program know whether to store in it's own folder vs. the %APPDATA% folder?