c#调用外部程序

来源:互联网 发布:mysql cluster 编辑:程序博客网 时间:2024/05/20 18:47

命名空间是using System.Diagnostics;

程序源码为:
privater void StaartForm()
{
     Process MyProcess = new Process();
     MyProcess.StartInfo.FileName = "d:/aaa.exe";//外部程序路径
     MyProcess.StartInfo.Verb = "Open";
     MyProcess.StartInfo.CreateNoWindow = true;
     MyProcess.Start();
}