在wpf中运行EXE文件

最简单的方法:
System.Diagnostics.Process.Start(@"路径");


网上的其他方法:
Process p = new System.Diagnostics.Process();
p.StartInfo.FileName =@"路径";
p.StartInfo.Arguments = "";
p.StartInfo.UseShellExecute = false;
    p.StartInfo.RedirectStandardInput = true;
            p.StartInfo.RedirectStandardOutput = true;
p.StartInfo.RedirectStandardError = true;
p.StartInfo.CreateNoWindow = false;
p.Start();

没有
 p.StartInfo.Arguments = "";
p.StartInfo.UseShellExecute = false;
p.StartInfo.RedirectStandardInput = true;
 p.StartInfo.RedirectStandardOutput = true;
p.StartInfo.RedirectStandardError = true;
p.StartInfo.CreateNoWindow = false;
也不影响
原文地址:https://www.cnblogs.com/syqun/p/exe.html