O
Olie
I am trying to run an application by creating a new AppDomain and then
running the executable in the new domain. This works perfectly but
when the application runs it is looking in the wrong directory for
some of the files. I have found out this is because the
Application.ExecutablePath has the path of the original app and not
that of the application domain.
Is there any way to change this so Application.ExecutablePath returns
the domain path.
I fear the answer is no so my next question is how do you start an
application in a different folder while still gaining access to the
created objects and forms?
I do not have access to the executing assembly so I can not change it
to not use Application.ExecutablePath.
running the executable in the new domain. This works perfectly but
when the application runs it is looking in the wrong directory for
some of the files. I have found out this is because the
Application.ExecutablePath has the path of the original app and not
that of the application domain.
Is there any way to change this so Application.ExecutablePath returns
the domain path.
I fear the answer is no so my next question is how do you start an
application in a different folder while still gaining access to the
created objects and forms?
I do not have access to the executing assembly so I can not change it
to not use Application.ExecutablePath.