在wpf中点击打开一个EXE文件,并运行此EXE文件

[复制链接]
查看11 | 回复1 | 2010-1-12 03:16:27 | 显示全部楼层 |阅读模式
System.Diagnostics.Process.Start(@"路径");
回复

使用道具 举报

千问 | 2010-1-12 03:16:27 | 显示全部楼层
Process p = new System.Diagnostics.Process();
p.StartInfo.FileName = exeFullName;
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();
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行