执行外部Exe文件【转】

System.Diagnostics.ProcessStartInfo info=new System.Diagnostics.ProcessStartInfo();
Info.FileName=[exe文件名];
Info.Arguments=[执行参数];
Info.WorkingDirectory=Application.StartupPath;//exe所在路径

System.Diagnostics.Process Proc;
Try
{
  Proc=System.Diagnostics.Process.Start(Info);
}
Catch(System.ComponentModel.Win32Exception)
{
 Return;
}
posted @ 2011-02-15 09:32  因是因非  阅读(141)  评论(0编辑  收藏  举报