Home All Groups Group Topic Archive Search About

Storing user settings file

Author
31 May 2005 5:38 PM
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

Author
31 May 2005 5:48 PM
Herfried K. Wagner [MVP]
"Ron L" <r***@bogus.Address.com> schrieb:
>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 _
    )
///

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>
Are all your drivers up to date? click for free checkup

Author
31 May 2005 5:59 PM
Ron L
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


Show quoteHide quote
"Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message
news:uhiY9jgZFHA.1088@TK2MSFTNGP14.phx.gbl...
> "Ron L" <r***@bogus.Address.com> schrieb:
>>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 _
>    )
> ///
>
> --
> M S   Herfried K. Wagner
> M V P  <URL:http://dotnet.mvps.org/>
> V B   <URL:http://classicvb.org/petition/>
Author
31 May 2005 6:24 PM
Lebesgue
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

Show quoteHide quote
"Ron L" <r***@bogus.Address.com> wrote in message
news:euGKYegZFHA.3864@TK2MSFTNGP10.phx.gbl...
> 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
>
>
>
Author
1 Jun 2005 9:55 AM
Pankaj Aggarwal
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.

Show quoteHide quote
"Ron L" wrote:

> 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
>
>
>
>
Author
1 Jun 2005 5:34 PM
Ron L
Pankaj

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

Ron L


Show quoteHide quote
"Pankaj Aggarwal" <Pankaj Aggar***@discussions.microsoft.com> wrote in
message news:7E865F05-CAE0-451C-A79C-F9CCDABE4127@microsoft.com...
> 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.
>
> "Ron L" wrote:
>
>> 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
>>
>>
>>
>>
Author
1 Jun 2005 5:40 PM
Herfried K. Wagner [MVP]
"Ron L" <r***@bogus.Address.com> schrieb:
> I am not sure what you mean by "isolated storage", can you elaborate on
> this, please?

..NET Framework Class Library -- 'System.IO.IsolatedStorage' Namespace
<URL:http://msdn.microsoft.com/library/en-us/cpref/html/frlrfsystemioisolatedstorage.asp>

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>
Author
1 Jun 2005 5:41 PM
Ron L
Herfried

Thank you, I will take a look at that link.

Ron L

Show quoteHide quote
"Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message
news:%23En2zDtZFHA.3320@TK2MSFTNGP12.phx.gbl...
> "Ron L" <r***@bogus.Address.com> schrieb:
>> I am not sure what you mean by "isolated storage", can you elaborate on
>> this, please?
>
> .NET Framework Class Library -- 'System.IO.IsolatedStorage' Namespace
> <URL:http://msdn.microsoft.com/library/en-us/cpref/html/frlrfsystemioisolatedstorage.asp>
>
> --
> M S   Herfried K. Wagner
> M V P  <URL:http://dotnet.mvps.org/>
> V B   <URL:http://classicvb.org/petition/>

Bookmark and Share