I wanna call a child process to run from the parent process. In that case the parent process should not be accessible before closing the child. I nearly accomplished this stuff by using the following code.
ProcessStartInfo pStart = new ProcessStartInfo();
pStart.FileName = @"D:\Child.exe";
using (Process proc = Process.Start(pStart))
The above code works successfully but my problem is different. In my child application there are totally two exe's.
In child application generally we used to call the Login.exe to login then the Login.exe will automatically close and the Child.exe will open.
In my present scenario I have to cal the Child application from the Parent. If I used the above coding, the Login.exe is called successfully. But after logon the Login.exe will close and then Child.exe will run then the Parent.exe is available now.
So I need the Parent.exe remain unaccessible until the Child.exe is closed.
View Complete Post