Discussion:
Storage of application settings?
(too old to reply)
Sonnich Jensen
2018-06-05 20:10:36 UTC
Permalink
Hi all

I used to store data in the local folder (C:\Users\<username>\AppData\Local), but it seems to be common to use the
CommonApplicationData (C:\ProgramData) folder today.

Is there a right or wrong here?

I used to use: Environment.SpecialFolder.LocalApplicationData
But now I think of Environment.SpecialFolder.CommonApplicationData

I still prefer local folder as it is for the user, so when multiple users are present they have their own settings.
Arne Vajhøj
2018-06-06 01:18:27 UTC
Permalink
Post by Sonnich Jensen
I used to store data in the local folder (C:\Users\<username>\AppData\Local), but it seems to be common to use the
CommonApplicationData (C:\ProgramData) folder today.
Is there a right or wrong here?
I used to use: Environment.SpecialFolder.LocalApplicationData
But now I think of Environment.SpecialFolder.CommonApplicationData
I still prefer local folder as it is for the user, so when multiple users are present they have their own settings.
I would use LocalApplicationData for the user specific stuff and
CommonApplicationData for the stuff shared between users.

That makes sense to me.

YMMV

Arne

Continue reading on narkive:
Loading...