Notes for Windows Vista and Windows 7 users
You only need to read this article if you want to store settings inside an .ini file on Windows Vista or Windows 7.
Windows Vista and Windows 7 can be confusing when you want to store settings in a file inside the program directory. The problem is that usually these operating systems do not allow applications to directly write to their program directories (if the program directory is a subdirectory of 'c:\program files').
On Windows 7 and Vista, when an application attempts to write to its program directory (if it is a subdirectory of 'c:\program files'), information gets written instead to the user's home folder with the same path. When the application is started again, the changes are still there, because Windows reads the modification from the home folder and merges it with the real content of the protected program directory.
This can be confusing. Although the application reads and writes from⁄to the .ini file in the program directory, you might not be able to see it! When you open the program directory inside the Windows Explorer file manager, the .ini file is often not there!
More specifically, for
c:\Program Files\addressbooksw\
the corresponding home folder is
c:\Users\<user name>\AppData\Local\VirtualStore\Program Files\addressbooksw\
So to locate (and backup) your ini file, you usually need to open
c:\Users\<user name>\AppData\Local\VirtualStore\Program Files\addressbooksw\
inside the Windows Explorer file manager (instead of the directory of the program).
Help! My .ini file has disappeared!
When you log in with a different username on the same computer, the .ini file seems to have disappeared, because your documents and settings directory has changed.
Remember, your username now is part of the path where the .ini file is stored! And if the username changes, then the path to the original ini file is no longer accessible.
Friendly advice
So if you run Windows Vista and Windows 7 and you want to use an .ini file to store your settings, we advise that you run the program from some location outside 'c:\program files'.
Search ]     [ Previous  |  Next ]     [ Up  |  First  |  Last ]     (Article 57 of 61)

This page is created with TreePad