How to read same config file from different application

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
 
G

Guest

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
 
G

Guest

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/
 

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