Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: Location for .ini files?

30 Nov 2011   #1

Windows 7 Home Premium 64 bit/ Ultimate
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 System SpecsSystem Spec
30 Nov 2011   #2

Windows 7 Professional SP1 32-bit

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 System SpecsSystem Spec
30 Nov 2011   #3

Windows 7 Home Premium 64 bit/ Ultimate

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 System SpecsSystem Spec

30 Nov 2011   #4

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 System SpecsSystem Spec

 Location for .ini files?

Thread Tools

Similar help and support threads
Thread Forum
Location of image files
Hi. I want to create a Cinnamon theme that looks like Windows 7 but I can't without the image files for different parts of Windows 7 such as the taskbar, the minimize button, the close button, the Start menu, etc. Where could I find those files? Thanks!
find physical location of files on hdd?
hi, i went to shrink one of my disk partitions and was told i couldn't get more than 3gb more because there are some files in the partition that windows can't move. i've actually got about 30gb free on the partition, so this is irksome. does anyone know of an application that'll show me where...
Performance & Maintenance
Need help finding location of files
I recently got an SSD and followed this guide to set it up properly How to: Setup SSD boot drive with secondary Hard disc optimization My problem is that once I finished it and everything was quick, I was too stupid to not back up at all and I cut/paste the contents of the user folder's video,...
Dragging Files To Another Location
Hi, Sometimes when I am dragging a file or folder into another location, it will simply make a copy of the file rather than moving. This is especially the case if dragging to another partition. This is annoying because I have to go back and erase the original file that I wanted move. Is there a...
Performance & Maintenance
Files in wrong location?
It's the old lady again, and I still don't understand the Windows 7 file structure. I'm used to a single user system, so when I moved my document files from my old computer to my new one, I just copied them to my data partition, D:\, using Windows Explorer. When I create a new file or download...
General Discussion

Our Sites

Site Links

About Us

Find 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 01:38.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App