473,549 Members | 2,699 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1882
"Ron L" <ro**@bogus.Add ress.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.Get FolderPath( _
Environment.Spe cialFolder.Loca lApplicationDat a _
)
///

--
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******** ******@TK2MSFTN GP14.phx.gbl...
"Ron L" <ro**@bogus.Add ress.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.Get FolderPath( _
Environment.Spe cialFolder.Loca lApplicationDat a _
)
///

--
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******** ******@TK2MSFTN GP14.phx.gbl...
"Ron L" <ro**@bogus.Add ress.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.Get FolderPath( _
Environment.Spe cialFolder.Loca lApplicationDat a _
)
///

--
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.Applicati on.CommonAppDat aRegistry to store application
specific settings (shared among all users)
and System.Windows. Forms.Applicati on.UserAppDataR egistry for user-specific
settings

"Ron L" <ro**@bogus.Add ress.com> wrote in message
news:eu******** ******@TK2MSFTN GP10.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.Applicati on.CommonAppDat aRegistry to store application
specific settings (shared among all users)
and System.Windows. Forms.Applicati on.UserAppDataR egistry for user-specific
settings

"Ron L" <ro**@bogus.Add ress.com> wrote in message
news:eu******** ******@TK2MSFTN GP10.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******@discus sions.microsoft .com> wrote in
message news:7E******** *************** ***********@mic rosoft.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******@discus sions.microsoft .com> wrote in
message news:7E******** *************** ***********@mic rosoft.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

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1238
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' preferences to be restored the next time the application is run. The classic DOS/Windows method was to use a ".ini" file in the application...
7
1148
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 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...
2
1288
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 text file that stores up to 255 strings. i knew that big chunks of data (the strings) had no place in the registry but if i am going to be reading a...
9
2260
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 of view, ini-files are more comfortable to read and edit) Where should I store user specific config data? Where should I store machine specific...
2
1654
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 best way of setting it up for ease of updates. This is completely beyond anything I've tried before so if people have better suggestions on how to...
2
8330
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 for all the things I want to persist just for storing in the user settings file (because that would allow other apps to access / change data they...
6
17107
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 Session to an XmlReader. if (performImport == false) { Session = fileUpload1.FileContent; //... some other code
11
10090
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 seen erratic results. I am aware of one known defect where user classes do not show up in the list of types on the Property/Settings page in the...
11
3068
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 question is what to do about settings/config? I have some settings should be settings which should be shared between
0
7518
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7446
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7715
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7956
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7469
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7808
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
5087
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3480
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1057
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.