473,320 Members | 2,092 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,320 software developers and data experts.

One VB.NET app, Multiple .config files

Hi,
Is there a way in .NET 1.1 to have to have one VB app use two different
..config files. We have one program which is used for two different
customers; each customer will have his own config file with his specific
folder and file names/locations.
I was thinking I could pass a parameter to the .exe to tell it which config
file to use.
Is this possible, and does anyone have any sample code?
Thanks,
John
Oct 18 '07 #1
3 2486

"John Walker" <Jo********@discussions.microsoft.comwrote in message
news:A8**********************************@microsof t.com...
Hi,
Is there a way in .NET 1.1 to have to have one VB app use two different
.config files. We have one program which is used for two different
customers; each customer will have his own config file with his specific
folder and file names/locations.
I was thinking I could pass a parameter to the .exe to tell it which
config
file to use.
Is this possible, and does anyone have any sample code?
Thanks,
John

Why don't have a config file that has the common things. You can have .ini
files that have other things not common to each other. There is nothing
stopping you from creating and just reading your own configuration files,
They are just text files anyway. Why make it anymore complicated than
needed?

Oct 20 '07 #2
On Thu, 18 Oct 2007 13:53:01 -0700, John Walker
<Jo********@discussions.microsoft.comwrote:
>Hi,
Is there a way in .NET 1.1 to have to have one VB app use two different
.config files. We have one program which is used for two different
customers; each customer will have his own config file with his specific
folder and file names/locations.
I was thinking I could pass a parameter to the .exe to tell it which config
file to use.
Is this possible, and does anyone have any sample code?
Thanks,
John
The question is, will the application be launched by different users
under different logged on profiles or different users logged on with
the same profile?

--
http://bytes.thinkersroom.com
Oct 22 '07 #3
The program will always be launched by the same user/profile.

"Rad [Visual C# MVP]" wrote:
On Thu, 18 Oct 2007 13:53:01 -0700, John Walker
<Jo********@discussions.microsoft.comwrote:
Hi,
Is there a way in .NET 1.1 to have to have one VB app use two different
.config files. We have one program which is used for two different
customers; each customer will have his own config file with his specific
folder and file names/locations.
I was thinking I could pass a parameter to the .exe to tell it which config
file to use.
Is this possible, and does anyone have any sample code?
Thanks,
John

The question is, will the application be launched by different users
under different logged on profiles or different users logged on with
the same profile?

--
http://bytes.thinkersroom.com
Oct 23 '07 #4

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

Similar topics

1
by: Vlad | last post by:
Is there any way to install multiple instances of the same windows service designed with VS.NET 2003? I tried copying the binaries into a separate folder and then copying registry entries for the...
1
by: RK | last post by:
Hi I am working on C# application, where in I may require just one app.config for the C#.NET solution with multiple windows application projects. I know one web.config can be used for multiple...
6
by: mark | last post by:
I have an asp.net ecommerce web application on a remote web server. I'm using an Access database on the back end. I've notice a few strange things. When I mimic an multiple user environment by...
6
by: Andrew Connell | last post by:
I have an app where I want virtually everything password protected/secure except for a single directory. That directory handles some custom authentication and contains my login form, but also some...
5
by: BPearson | last post by:
Hello I would like to have several sites share a single web.config file. To accomplish this, I would point the root of these sites to the same folder. Is there any reason why I might not want to...
2
by: Sam | last post by:
Hi All, I have a solution which consists of multiple projects and each of these projects has their own app.config file. The problem is that all of my projects in the solution pull keys from the...
1
by: herbert | last post by:
In VS.2005 a Windows Service can have an app.config file. A class library can also have an app.config file. Now if my Windows Services uses three class libraries, each of it coming with its own...
3
by: | last post by:
I'm seeking (probably basic) guidance on the right way to split a large site that's supposed to represent one domain(mydomain.org) into many small VS.NET projects, and how to avoid issues with...
3
by: =?Utf-8?B?QXZpc2hheSBCZW4tWnZp?= | last post by:
Hi, I have an application that I am encrypting the connection strings on the first run of the application. I am using clickonce to deploy the application, so this was a good solution as the...
2
by: Fresno Bob | last post by:
I quite like to store variables in the web.config file. However it can make the web.config messy and make deployment fiddly. Is there any way of have multiple web.config files - one with the major...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
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...

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.