One VB.NET app, Multiple .config files

G

Guest

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
 
M

Mr. Arnold

John Walker said:
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?
 
R

Rad [Visual C# MVP]

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top