Link to home
Start Free TrialLog in
Avatar of aspnetdev
aspnetdev

asked on

hidden config file

Hi,
I have an exe and dll copied under the c:\Programfiles in windows vista.When i run that exe and make changes to the winform like location...it writes to the config file and while loading form it reads.Now the problem is if i dont run the exe as admin then im unable to see the exec.config file.If i run as admin i am able to.I dont want the exe to run as admin...can any one tell me where do i look for this config file in vista
BTW this is win app written in C#.
Also,can any one tell me whats the best location to write the application data in vista.Can any one also pass me url where MS says that following location is best for copying the application data.
Thanks
Avatar of ZachSmith
ZachSmith
Flag of United States of America image

In Vista, you need to write the application configs to the user directories.
Avatar of aspnetdev
aspnetdev

ASKER

can you tell me like how?
ASKER CERTIFIED SOLUTION
Avatar of ZachSmith
ZachSmith
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks Zach...i was able to find the location where the config file was being copied on in vista.
It was
 C:\Users\(yourname)\AppData\Local\VirtualStore\Program Files\(the program folder) wher it was being copied.Also can you tell me where would be the best place for me to copy my app data in vista.If you have any Msft url that wud be great.
Thanks
You should put the application data in the folder I referenced above (Environment.SpecialFolder.LocalApplicationData), but create a directory under there to hold the information that is specific to your application.