- Sep 10, 2001
- 11,709
- 8
- 81
Well first let me just say I am a Windows XP user and I have no experience using Vista or Windows 7. I really do not understand their file protection schemes.
But I have a project I am developing which people download and it needs to save certain things to file, which the program should then be able to load anytime it is run again.
this has always worked fine until users with the newer OS's started reporting problems accessing that file on their system. First it would crash the PC, and then with some research I use this path:
Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData)
to store that file.
But while at least it does not crash anymore I do have people reporting that they get a "UAC prompt" and i guess this is some kind of nag, at least it is nagging to them. So I would like to know how can I store my file while avoiding this nonsense?
What system property would provide me a "safe" path to work with?
But I have a project I am developing which people download and it needs to save certain things to file, which the program should then be able to load anytime it is run again.
this has always worked fine until users with the newer OS's started reporting problems accessing that file on their system. First it would crash the PC, and then with some research I use this path:
Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData)
to store that file.
But while at least it does not crash anymore I do have people reporting that they get a "UAC prompt" and i guess this is some kind of nag, at least it is nagging to them. So I would like to know how can I store my file while avoiding this nonsense?
What system property would provide me a "safe" path to work with?