Location for .ini files?


  1. Posts : 4
    Windows 7 Home Premium 64 bit/ Ultimate
       #1

    Location for .ini files?


    I found a very old thread on the subject of locations for .ini files, but didn't quite answer fully.

    I have an application (which we developed ourselves) that uses a .ini file, previously stored in the Windows folder. I understand that its not classed as a good idea and now Windows 7 has made it difficult to use that location now.

    So rather than fight with windows, I'm giving in and changing the application to use a different location. Is there a suggested location for this to go? It needs to be a standard location on any machine. Would be good to get this right first time.. and may seem like one of my 'daft' questions :)
      My Computer


  2. Posts : 1,781
    Windows 7 Professional SP1 32-bit
       #2

    I think the best location for an .ini file would be either the program's own folder or the current user's AppData\Roaming folder.
      My Computer


  3. Posts : 4
    Windows 7 Home Premium 64 bit/ Ultimate
    Thread Starter
       #3

    The downside of me using the user's folder is that not all machines will have the same user name, I can foresee a few issues there maybe. Will have to do a bit of delving into the windows function used currently I think to find out how much of a fight I'm getting myself into!
      My Computer


  4. Posts : 4
    Windows 7 Home Premium 64 bit/ Ultimate
    Thread Starter
       #4

    Ok, thanks for your input Corazon, with discussions going on here too.. I've decided to change the way we do things with our software to approach this differently. Hopefully reducing the amount of code to be rewritten. May get away with consequent Windows versions causing a headache too now I have an idea where they are going with this. :)
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 18:18.
Find Us