One VB.NET app, Multiple .config files

One VB.NET app, Multiple .config files

am 18.10.2007 22:53:01 von JohnWalker

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

Re: One VB.NET app, Multiple .config files

am 20.10.2007 07:23:33 von MR. Arnold

"John Walker" wrote in message
news:A8B338BB-6D26-46B1-A175-84AB0CB3C77F@microsoft.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?

Re: One VB.NET app, Multiple .config files

am 22.10.2007 10:58:32 von RAD

On Thu, 18 Oct 2007 13:53:01 -0700, John Walker
wrote:

>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

Re: One VB.NET app, Multiple .config files

am 23.10.2007 22:31:01 von JohnWalker

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
> wrote:
>
> >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
>