Summary: Several different users will use my application on a specific machine. I want the application to store its data in a single common file on this machine regardless of which user is running the application.
To achieve what I want, I am wondering whether this question might be relevant: Difference between 'SpecialFolder.LocalApplicationData' and 'SpecialFolder.ApplicationData'?
From that question and its answers it appears that:
Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData)
is specific to the machine. Some of the information I have turned up by googling confirms that. However, I have also found information that says that LocalApplicationData
is user specific.
So, which is true? And can anyone tell me what is really meant by "user specific" and "machine specific"?
Here's what I'm thinking: If LocalApplicationData
is machine specific, then I can use that as a basis for having my application save all of its data to a single common file for all users.
I'm also wondering about the ApplicationData
folder:
Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData)
Should I instead use ApplicationData
to get what I want?