In C #, there is an easy way to handle this. Using the System.Diagnostics namespace, there is a class for handling spawning processes.
System.Diagnostics.Process process = new System.Diagnostics.Process(); process.StartInfo.FileName = "App.exe"; process.StartInfo.Arguments = "arg1 arg2 arg3"; process.Start(); Console.WriteLine(process.StandardOutput.ReadToEnd();
There are additional options for handling things like not creating a console window, redirecting input or output, and much more that you need.
MattGWagner
source share