在wpf中运行EXE文件
生活随笔
收集整理的這篇文章主要介紹了
在wpf中运行EXE文件
小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
最簡(jiǎn)單的方法:
System.Diagnostics.Process.Start(@"路徑");
網(wǎng)上的其他方法:
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();
沒(méi)有 p.StartInfo.Arguments = "";
p.StartInfo.UseShellExecute = false;
p.StartInfo.RedirectStandardInput = true;
p.StartInfo.RedirectStandardOutput = true;
p.StartInfo.RedirectStandardError = true;
p.StartInfo.CreateNoWindow = false;
也不影響
轉(zhuǎn)載于:https://www.cnblogs.com/syqun/p/exe.html
總結(jié)
以上是生活随笔為你收集整理的在wpf中运行EXE文件的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: 使用.NET REACTOR制作软件许可
- 下一篇: 枚举,给枚举赋值