How to read same config file from different application

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

How to read same config file from different application?

I have 4 application in VB.NET, all are using different app.config files.
NOW I need all to read only one config file, how can I do this.

Thanks in Adv.

Regards,
Mustaq
 
Hi Rakesh,

Thanks for your support, What I need is how can I force my VB.NET exes to
read from one config file

Senario, I have 4 Applications
EXE
1. AA.exe
2. BB.exe
3. CC.exe
4. DD.exe

Its Config files are as follows
1. AA.exe.config
2. BB.exe.config
3. CC.exe.config
4. DD.exe.config

all exes are in same directory, so now I need only AA.exe.config to run
other exex as well. Inside parameters are same.

How can I force applications to read read only AA.exe.config file.

Regards,
Mustaq
 
Hi Mustaq,

There are no built-in methods I know of to accomplish this. Together with:
1. AA.exe.config
2. BB.exe.config
3. CC.exe.config
4. DD.exe.config

, you will need a "common.config" (or any other name) where you would store
your common settings. In other words, the Bin folder will have 5 config files
:(

One way would be to read the settings xml file directly. For an example,
check out this sample:
http://www.windowsforms.net/Applications/application.aspx?PageID=40&tabindex=9

--
HTH,
Rakesh Rajan
MVP, MCSD
http://www.msmvps.com/rakeshrajan/
 
Back
Top