473,388 Members | 1,188 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,388 software developers and data experts.

Changing the location of a *.settings file

Does any one know if it is possible to set the location of a settings
file? I want to use separate settings files for each user and will
need to change the location.

[using C# with framework 2.0]

Thanks,

Jamie

Sep 20 '06 #1
4 3320
"Jamie McQuay" <Ja**********@googlemail.comwrote in message
news:11**********************@i3g2000cwc.googlegro ups.com...
Does any one know if it is possible to set the location of a settings
file? I want to use separate settings files for each user and will
need to change the location.
When you save your settings from within the program, the settings file
(user.config) is placed in Documents and Settings/<user name>/Local
Settings/..., so there's already a unique settings file for each user.

Were you looking for something different? (e.g. if your "users" don't
correspond to the logged-in user running the application).

-cd
Sep 20 '06 #2

When you save your settings from within the program, the settings file
(user.config) is placed in Documents and Settings/<user name>/Local
Settings/..., so there's already a unique settings file for each user.
That would be the idea way but the "users" only exsist w.r.t the
application
Were you looking for something different? (e.g. if your "users" don't
correspond to the logged-in user running the application).
yes, that's my situation.

Regards,

Jamie

Sep 21 '06 #3
Jamie McQuay wrote:
>When you save your settings from within the program, the settings
file (user.config) is placed in Documents and Settings/<user
name>/Local Settings/..., so there's already a unique settings file
for each user.

That would be the idea way but the "users" only exsist w.r.t the
application
>Were you looking for something different? (e.g. if your "users"
don't correspond to the logged-in user running the application).
yes, that's my situation.
Sadly, unless there's a bit of secret sauce that I haven't discovered,
you're out of luck. The settings facility is quite hard-wired as to the
names and locations of the files that it opens. You can of course build
your own settings facility that stores the settings in a file of your
choosing, but you won't be able to make use of the "settings" support in the
IDE going that route.

-cd
Sep 21 '06 #4
Sadly, unless there's a bit of secret sauce that I haven't discovered,
you're out of luck. The settings facility is quite hard-wired as to the
names and locations of the files that it opens. You can of course build
your own settings facility that stores the settings in a file of your
choosing, but you won't be able to make use of the "settings" support in the
IDE going that route.
thanks carl,

I've been using my own system and was trying to get away from it.

Regards,

Jamie

Sep 21 '06 #5

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

Similar topics

2
by: amnésia | last post by:
Hi there. I have to change the drive letter where SQL server have his datfiles (master included). If I do that, ob the SQL fail to start, becouse it's unable to find the master datfiles. Is it...
1
by: SurfCoder | last post by:
Scenario: i have a little programm that uses OleDb.connection to connect to a database... the datasource is C:\programm Files\Database.mdb now i want to change the datasource for the connection...
5
by: Carlos Hernandez | last post by:
We have created a webservice, and in out test server everyting works fine, but when we want to move it to our production server, we have ti change IP in the webreference properties, and rebuild...
0
by: Timothy V | last post by:
Hi all, I'm using the VS2005 auto generated settings.settings file. When I save the file, it puts the user.settings file under an ugly looking directory name. How do I change the directory name...
3
by: Marc | last post by:
Hi Guys, Is there an easy way to save and reload a controls location somehow? My controls are draggable and I am struggling to find a way to save the controls 'last' location since the mouse...
14
by: Keith | last post by:
I have an MDE application used by several hundred people in different parts of the world. The majority of users are of lesser experience computer experience. The app consists of a frontend (MDE)...
3
by: Richard Hollenbeck | last post by:
Hello, I just moved my main database and the backend database to a better location and changed the name. But now I can't seem to get Access to recognize the new location and name. I tried using...
0
by: coopdog | last post by:
This is a new issue as of an install to sp1 on vb express 2005. When I publish the application to my drive then I try to install it is wants to be installed from the same location as it was...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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...
0
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,...
0
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...

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.