K
Khodr
Hello,
I am using VS.NET 2003 and vb. I build my application MyApp and it generates
MyApp.exe.config. So now MyApp.exe reads parameters from MyApp.exe.config.
Great and no problem!
I need to run the same program but with different configuration data. So I
made a copy of MyApp.exe and MyApp.exe.config to put them in another folder
and renamed the copy to MyApp2.exe and MyApp2.exe.config respectively. I ran
it but it did not read from MyApp2.exe.config. I also renamed
MyApp2.exe.config back to MyApp.exe.config and also did not work. (N.B. I
need to have MyApp.exe and MyApp2.exe with different names).
The question is: How can I make a copy of my program and its config file to
another folder, and run both programs MyApp.exe and MyApp2.exe and each read
from its own config file?
Any help will be highly appreciated.
Thanks
Khodr
I am using VS.NET 2003 and vb. I build my application MyApp and it generates
MyApp.exe.config. So now MyApp.exe reads parameters from MyApp.exe.config.
Great and no problem!
I need to run the same program but with different configuration data. So I
made a copy of MyApp.exe and MyApp.exe.config to put them in another folder
and renamed the copy to MyApp2.exe and MyApp2.exe.config respectively. I ran
it but it did not read from MyApp2.exe.config. I also renamed
MyApp2.exe.config back to MyApp.exe.config and also did not work. (N.B. I
need to have MyApp.exe and MyApp2.exe with different names).
The question is: How can I make a copy of my program and its config file to
another folder, and run both programs MyApp.exe and MyApp2.exe and each read
from its own config file?
Any help will be highly appreciated.
Thanks
Khodr