Best Place to Store Config Files and Log Files on Windows for My Program?
- by Dave
I need to store log files and config files for my application. Where is the best place to store them?
Right now I'm just using the current directory, which ends up putting them in the Program Files directory where my program lives.
The log files will probably be accessed by the user somewhat regularly, so %APPDATA% seems a little hard to get to.
Is a directory under %USERPROFILE%\My Documents the best? It needs to work for all versions of Windows from 2000 forward.