private static void StartProcess(string FileName, string sPath)
{
try
{
if (!System.IO.File.Exists(FileName))
return;
System.Diagnostics.Process myProcess = new System.Diagnostics.Process();
myProcess.StartInfo.UseShellExecute = false;
myProcess.StartInfo.FileName = FileName;
myProcess.StartInfo.Arguments = sPath;
myProcess.Start();
myProcess.WaitForExit();
}
catch (Exception ex)
{
Console.WriteLine(ex.Message);
}
}
启动程序
StartProcess(@"\Windows\tMail.exe");
本文作者:网友 来源:网络 http://hi.baidu.com/adnroidorg/home
CIO之家 www.ciozj.com 微信公众号:imciow