Best Place to Store Config Files and Log Files on Windows for My Program?
Posted
by Dave
on Stack Overflow
See other posts from Stack Overflow
or by Dave
Published on 2008-11-06T19:08:30Z
Indexed on
2010/05/19
0:50 UTC
Read the original article
Hit count: 257
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.
© Stack Overflow or respective owner