在wpf中运行EXE文件
生活随笔
收集整理的這篇文章主要介紹了
在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
總結
以上是生活随笔為你收集整理的在wpf中运行EXE文件的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 使用.NET REACTOR制作软件许可
- 下一篇: 枚举,给枚举赋值