Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Apr 26, 2012 03:29 AM by quickmelt
Apr 26, 2012 01:22 AM|LINK
pls help. i have to create a batch program that will run mutiple exe file. each exe file has dependency to each other so exe1 should run completely before running exe2. in c#.net, how to determine if an exe file run completely or should i say how will i
program this procedure? i have no idea on what systax should i use.
Apr 26, 2012 01:49 AM|LINK
Hi, You can use as given, where WaitForExit - wait till the associated process to complete..
below article have some samples
Process p = new Process();
// Redirect the error stream of the child process.
p.StartInfo.UseShellExecute = false;
p.StartInfo.RedirectStandardError = true;
p.StartInfo.FileName = "Write500Lines.exe";
// Do not wait for the child process to exit before
// reading to the end of its redirected error stream.
// Read the error stream first and then wait.
string error = p.StandardError.ReadToEnd();
Apr 26, 2012 03:29 AM|LINK
thank you :-)