473,385 Members | 1,409 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 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 1866
"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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: alock | last post by:
I am looking for different opinions on how the state data of a .NET application should be stored. An example would be the size and location of the main application window. This allows the users'...
7
by: Ron L | last post by:
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...
2
BSOB
by: BSOB | last post by:
I am just wondering about how practical it is to use the registry to store settings. I have several boolean values that are currently being stored in the regestry for my application and a seperate...
9
by: KarlM | last post by:
After reading some articles regarding confuguration data I'm a bit confused. Where is the right place for storing configuration data? - XML-files? - registry? - INI-files? (from a users point...
2
by: Regnab | last post by:
I'm creating a database that will be used independently at different sites (in the same company). Given the fact that there will be inevitable changes down the track, I'm trying to work out the...
2
by: Paul Hadfield | last post by:
Hi, I'm not having a lot of luck googling for this one, I want to be able to store a custom class in the user settings (DotNet2.0, win app). I don't wish to create public get / set properities...
6
by: J055 | last post by:
Hi I have the following code. I upload an XML file using the FileUpload object, store the stream in a session so the user gets the chance to confirm some options then pass the stream from the...
11
by: =?Utf-8?B?bWljaGFlbCBzb3JlbnM=?= | last post by:
I have worked with application settings in VS2005 and C# for awhile, but usually with standard types. I have been trying to store a custom container/class/type in an application setting and I have...
11
by: =?Utf-8?B?cGJjb2Rlcg==?= | last post by:
Hi, I have been asked to create a solution in a single exe - using C# .NET 3.5. I have found that I can us ILMerge to create a single exe of all of my Application assemblies. But my...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.