Note that there are some explanatory texts on larger screens.

plurals
  1. POUniversal approach for storing INI-type settings and/or DB files on various Windows machines
    primarykey
    data
    text
    <p>OK, true confession first: Maybe it's just me, but sometimes "best practices for program settings" on Windows machines feels like it's changed more than Microsoft's data access strategies. I'm still running XP, and somewhere along the way just kind "glazed over" about where MS wanted me to store all my app's data, etc. I controlled all the machines I coded for, so it really didn't matter.</p> <p>Now I'm writing apps for "in the wild," supporting Win98SE on up. I have to pay attention to all this again. :-\</p> <p>For reasons having to do mostly with easy migration to new computers, I'm not a big fan of using the registry for app settings -- I prefer using INI files, and have some older INI components that I use for the task (Raize, usually). I'm open to suggestions to other third-party components, if they'll make this easier / less hassle.</p> <p>Basically, I need to store app settings (like remembering option settings, etc). </p> <p>I've read: <a href="https://stackoverflow.com/questions/6607/registry-vs-ini-file-for-storing-user-configurable-application-settings">Registry vs. INI file for storing user configurable application settings</a><br> <a href="https://stackoverflow.com/questions/285277/where-to-store-program-settings-instead-of-hkeylocalmachine">Where to store program settings instead of HKEY_LOCAL_MACHINE?</a><br> <a href="https://stackoverflow.com/questions/579673/where-should-my-win32-program-keep-its-files">Where should my win32 program keep its files?</a><br> <a href="https://stackoverflow.com/questions/269893/best-place-to-store-config-files-and-log-files-on-windows-for-my-program">Best place to store configuration files and log files on Windows for my program?</a></p> <p>...so at least I'm not alone in this question... ; )<br> (w/apologies for what is somewhat of a repeat question, albeit from a slightly different angle).</p> <p>It SOUNDS like I can just use %APPDATA%/MyProgram, and store all data there, <strong>BUT</strong> is this UNIVERSALLY TRUE across all Windows flavors from Win98SE on up? If not, what's the best approach, and when did that approach come into existence?</p> <p>What I'm really looking for, honestly, is the easiest way to make this problem go away -- I just want one (if possible), simple, easy, reliable way to grab "My Program's Data Folder" in any and all instances. Will the above accomplish that?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload