471,357 Members | 1,087 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,357 software developers and data experts.

Storing user settings file

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

Jul 21 '05 #1
13 1756
"Ron L" <ro**@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/>

Jul 21 '05 #2
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
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:uh**************@TK2MSFTNGP14.phx.gbl...
"Ron L" <ro**@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/>

Jul 21 '05 #3
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
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:uh**************@TK2MSFTNGP14.phx.gbl...
"Ron L" <ro**@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/>

Jul 21 '05 #4
You may want to store the settings in registry, use

System.Windows.Forms.Application.CommonAppDataRegi stry to store application
specific settings (shared among all users)
and System.Windows.Forms.Application.UserAppDataRegist ry for user-specific
settings

"Ron L" <ro**@bogus.Address.com> wrote in message
news:eu**************@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

Jul 21 '05 #5
You may want to store the settings in registry, use

System.Windows.Forms.Application.CommonAppDataRegi stry to store application
specific settings (shared among all users)
and System.Windows.Forms.Application.UserAppDataRegist ry for user-specific
settings

"Ron L" <ro**@bogus.Address.com> wrote in message
news:eu**************@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

Jul 21 '05 #6
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

Jul 21 '05 #7
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

Jul 21 '05 #8
Pankaj

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

Ron L
"Pankaj Aggarwal" <Pankaj Ag******@discussions.microsoft.com> wrote in
message news:7E**********************************@microsof t.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

Jul 21 '05 #9
Pankaj

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

Ron L
"Pankaj Aggarwal" <Pankaj Ag******@discussions.microsoft.com> wrote in
message news:7E**********************************@microsof t.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

Jul 21 '05 #10
"Ron L" <ro**@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/>

Jul 21 '05 #11
"Ron L" <ro**@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/>

Jul 21 '05 #12
Herfried

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

Ron L

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
"Ron L" <ro**@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/>

Jul 21 '05 #13
Herfried

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

Ron L

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
"Ron L" <ro**@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/>

Jul 21 '05 #14

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by alock | last post: by
7 posts views Thread by Ron L | last post: by
BSOB
2 posts views Thread by BSOB | last post: by
2 posts views Thread by Paul Hadfield | last post: by
11 posts views Thread by =?Utf-8?B?bWljaGFlbCBzb3JlbnM=?= | last post: by
11 posts views Thread by =?Utf-8?B?cGJjb2Rlcg==?= | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.