I'm running Windows 8.1 64bit and I've just discovered that writing INI files to the Windows folder or the C root path is not working. I'm putting finishing touches on DigiGraph 3 and need to save the applications installed path to an INI file so the DigiGraph 3 Screensaver can access the users created screensaver presentation files. My first port of call was writing this to an INI file in the Windows folder but it doesn't work. Yes, I have ticked off for it to use the Application Directory folder and I have even specified the Windows path "C:\Windows\MyINIFile.ini", but the file didn't appear.
Still needing a location that I could easily store and access this file, I decided to write the INI directly to the C root path. Again this did not work.
My only solution has been to write my INI file to the MyDocuments folder. This worked fine but I'm not happy with it. What if a user has their MyDocuments folder set to be on the SkyDrive or wherever!?! I can write INI files into my own folders just fine but not into Windows or the C root and this is not good. Anyone got any ideas on how to sort this or do I just go ahead and use the MyDocuments folder?