Solved Location for .ini files?

SueTw

New member
Local time
2:37 AM
Messages
4
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 :confused: :)
 

My Computer

OS
Windows 7 Home Premium 64 bit/ Ultimate
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

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom-built
OS
Windows 7 Professional SP1 32-bit
CPU
Intel Core 2 Duo E6600 2.4GHz
Motherboard
Asus PL5D2
Memory
4GB DDR2-667 (4x1GB in dual-channel config)
Graphics Card(s)
nVidia GeForce 9800 GT
Sound Card
Creative X-Fi XtremeMusic
Monitor(s) Displays
Acer P236H
Screen Resolution
1920x1200 (DVI)
Hard Drives
OCZ SSD Vertex Plus 60GB SATA (Firmware 3.55), 64MB cache
Hitachi HD321KJ SATA, 320GB, 7200rpm, 16MB cache
PSU
Antec TruePower 2.0
Case
Cooler Master Centurion
Cooling
Too many fans
Keyboard
Standard
Mouse
Microsoft wireless optical mouse
Internet Speed
AT&T U-verse (18mbit/sec)
Antivirus
Microsoft Security Essentials
Browser
Firefox
Other Info
Other devices:
Compaq CQ-60 laptop
Google Nexus 7 (2012) tablet
Nvidia SHIELD tablet (US/LTE)
Hardkernel ODROID-XU single-board computer (Samsung Exynos 5420)
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

OS
Windows 7 Home Premium 64 bit/ Ultimate
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

OS
Windows 7 Home Premium 64 bit/ Ultimate
Back
Top