in reply to Where to put an application database?
One of the most annoying 'features' of many Windows applications is their tendency to stuff their data files away in predefined places. (eg. APPDATA=C:\Users\UserName\AppData\Roaming\AppName\config\ and similar).
There are two problems with this:
Personally, I'd prefer the default location to be in (or relative to) the CWD. That way, if I wish to use the application for two or more independent projects, I can run it from those project directories and it will locate the appropriate files without my having to set environment variables or pass convoluted runtime switches to point it at the right places. I can have multiple command line sessions each in a different cwd and run multiple copies of the app without having to jump through hoops to keep them separate.
|
|---|