Question Command Window hiding when an .exe file is run using an AppDomain.

SridharRapaka

New member
Joined
Nov 8, 2011
Messages
1
Programming Experience
1-3
Hi,

I have created an application domain, using which i am executing an .exe file.So the command window does open which has the title as file name. I want to hide the command window.

Dim
newAppDomain As AppDomain = AppDomain.CreateDomain("", AppDomain.CurrentDomain.Evidence, AppDomain.CurrentDomain.SetupInformation)
newAppDomain.ExecuteAssembly(IO.Path.Combine(OfficeAddInConfig.Instance.BinPath &
"\Core", "file1.exe"))

Here a command prompt will be opened which need to hide.

Please help me if any one has any idea.

Thanks.

 
Simpler would be to create an instance of Process class and configure its StartInfo (FileName and CreateNoWindow=True).

Why do you need a new AppDomain? If you do need one you would have to use a class with a method that was created and called in AppDomain, the method would contain the Process code mentioned.
 
Back
Top