Question : .INI file in vista is accessible even after it is deleted

Hello,
We have a .net application. We store certain parameters of the application in .INI file (i.e. initialization file) in Windows folder. Now we do not allow the user to run the application if this file demo.ini is not there. So for testing purpose, on Windows XP, we renamed the file to demo1.INI and the application gave user the message as required and the application did not run. Now we tested on Vista (with SP1). But to my surprise, I found that even after renaming the file to demo1.ini, my application still runs. From where does it get this file when it is renamed? Then I deleted this file from Windows folder and re-booted the machine. Still even after deleting this .ini file, my application still runs. I checked the source code and it seems that somehow the .ini is available in Windows folder though windows explorer cannot show it. Can someone help me? Note that the windows login user has administrative privileges.

Regards,
MI

Answer : .INI file in vista is accessible even after it is deleted

I think it has to do with the concept of Registry and File/Folder virtualization, new with Vista.  Your ini file is moved to a new location.  See this article:

http://windowsconnected.com/blogs/jerry/archive/2005/12/19/86.aspx
File and Registry Virtualization  the good, the bad, and the ugly
Random Solutions  
 
programming4us programming4us