Also, you don't want to put it in System! You want in the Local Application Data folder.
Also, you don't want to put it in System! You want in the Local Application Data folder.
Yes, that was the page I found before when writing the GetFolderPath() but I did miss all the platforms.
That really gave me the answer and I can there see what OS that supports SpecialFolder etc...
This syntax is really very handy ! A new discovery for today..
Thank you very much for help !!!
Okay what would be the difference to have it in the System and Local Application Data folder ?
However the Local Application Data folder works fine.
Then I suppose I would write it like this:
Code:System::Environment::GetFolderPath(Environment::SpecialFolder::LocalApplicationData);
Last edited by franse; 01-28-2009 at 05:27 PM.
LocalApplicationData is per user - there is only one SYSTEM. So if you want the logged in user to have his/her own data, then application data is better.
Besides that, either is fine, I suppse - although I don't like apps that put their own data in SYSTEM directory, it should just be stuff that gets installed in that region - that way, you don't have to search through it to find data-files that you need to back up before re-installing the OS, etc.
--
Mats
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.
Wouldn't System folder be protected against writing without administrator rights anyway?
I might be wrong.
Quoted more than 1000 times (I hope).Thank you, anon. You sure know how to recognize different types of trees from quite a long way away.
Exactly, anon, and it's expected that one keeps their data files with their own application.
That was great to know and follow your discussion...
I would really keep such information in the Local Application Data folder to it correctly and to be
on the safe side at the same time.