Storing user settings file

  • Thread starter Thread starter Ron L
  • Start date Start date
R

Ron L

I have an application we are building that will be used by a number of
different users on shared PCs. I want to be able to store a number of user
settings in a location that is unique for each user, so that one user's
settings do not affect another. Is there a "standard" location to store
these files? How about a "standard" location to store a file of default
settings if the user hasn't run the application yet?

TIA
Ron L
 
Ron L said:
I have an application we are building that will be used by a number of
different users on shared PCs. I want to be able to store a number of user
settings in a location that is unique for each user, so that one user's
settings do not affect another. Is there a "standard" location to store
these files? How about a "standard" location to store a file of default
settings if the user hasn't run the application yet?

\\\
Dim Path As String = _
Environment.GetFolderPath( _
Environment.SpecialFolder.LocalApplicationData _
)
///
 
Herfried
Thank you for the response. I assume that this will get the location
for an individual user, do you know how to get one for a set of defaults, or
should those simply be stored in the same directory as the application?

TIA
Ron L
 
You may want to store the settings in registry, use

System.Windows.Forms.Application.CommonAppDataRegistry to store application
specific settings (shared among all users)
and System.Windows.Forms.Application.UserAppDataRegistry for user-specific
settings
 
Hi
try to use isolated storage available in .net that is unique for every user.
other good thing is that it acts like a harddisk space and you can even store
files in that.
 
Pankaj

Thank you for the response. I am not sure what you mean by "isolated
storage", can you elaborate on this, please?

Ron L
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top