A
Alvin Bruney [MVP]
I have two managed windows applications A and B. Both have their own config
files. Application A invokes application B thru process start. However,
since B runs in A's context, B starts up and reads A's configuration file
instead of it's own. I didn't even realize that this was possible.
To get around that issue, from A application code I create a new application
domain and load B. B then is able to read it's own configuration file.
However, it opens a console window while it executes. I want to suppress
this window. I also want to read the output from the console window; that
is, make application B's output be available in application A. This was
rather easy with the system.diagnostic class however because of the config
file issue, I can't use it. Any hints? Assume further that app B is a third
party component so I have no access to the source code.
--
________________________
Warm regards,
Alvin Bruney [MVP ASP.NET]
[Shameless Author plug]
Professional VSTO.NET - Wrox/Wiley
The O.W.C. Black Book with .NET
www.lulu.com/owc, Amazon
Blog: http://www.msmvps.com/blogs/alvin
-------------------------------------------------------
files. Application A invokes application B thru process start. However,
since B runs in A's context, B starts up and reads A's configuration file
instead of it's own. I didn't even realize that this was possible.
To get around that issue, from A application code I create a new application
domain and load B. B then is able to read it's own configuration file.
However, it opens a console window while it executes. I want to suppress
this window. I also want to read the output from the console window; that
is, make application B's output be available in application A. This was
rather easy with the system.diagnostic class however because of the config
file issue, I can't use it. Any hints? Assume further that app B is a third
party component so I have no access to the source code.
--
________________________
Warm regards,
Alvin Bruney [MVP ASP.NET]
[Shameless Author plug]
Professional VSTO.NET - Wrox/Wiley
The O.W.C. Black Book with .NET
www.lulu.com/owc, Amazon
Blog: http://www.msmvps.com/blogs/alvin
-------------------------------------------------------