最简单的方法:
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;
也不影响
posted on 2014-07-01 15:31  樂兒  阅读(2492)  评论(0编辑  收藏  举报