Also, you don't want to put it in System! You want in the Local Application Data folder.
Printable View
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);
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
Wouldn't System folder be protected against writing without administrator rights anyway?
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.