利用进程池方式启动

string exefile = "xxx.exe";
if (File.Exists(exefile)) {
Process process = new Process();   // params 为 string 类型的参数,多个参数以空格分隔,如果某个参数为空,可以传入””
ProcessStartInfo startInfo = new ProcessStartInfo(exefile, params);
process.StartInfo = startInfo;
process.Start();
}

遮蔽CLI启动窗口

string exefile = "xxx.exe";
if (File.Exists(exefile)) {
Process process = new Process();
ProcessStartInfo startInfo = new ProcessStartInfo(exefile, path);
startInfo.UseShellExecute = false;
startInfo.RedirectStandardOutput = true; startInfo.CreateNoWindow = true;
process.StartInfo = startInfo;
process.Start();
process.WaitForExit(2000);
string output = process.StandardOutput.ReadToEnd();
rtb_analyze.Text = output;
process.Close();
}

异步启动方式

public void exec(string exePath, string parameters)
{
Process process = new System.Diagnostics.Process();
process.StartInfo.FileName = exePath;
process.StartInfo.Arguments = parameters;
process.StartInfo.UseShellExecute = false;
process.StartInfo.CreateNoWindow = true;
process.StartInfo.RedirectStandardOutput = true;
process.Start();
process.BeginOutputReadLine();
process.OutputDataReceived += new DataReceivedEventHandler(processOutputDataReceived);
}

个人学习用途博客 部分内容摘抄自网络