I need to create a proccess that will run an executable (with paramerets) wait till it’s finished and check for errors.
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Look into the
System.Diagnostics.Processclass.Process.Start()will start a new process (with arguments, if you wish – there are several overloads),Process.WaitForExit()will wait for it to exit and theExitCodeproperty will return the exit code. All self-documenting, isn’t it?