System.Diagnostics.ProcessStartInfo Info = new System.Diagnostics.ProcessStartInfo();
            //设置外部程序名
            Info.FileName = "Update.exe";
            Info.WorkingDirectory = Application.StartupPath;
            //声明一个程序类
            System.Diagnostics.Process Proc = new System.Diagnostics.Process();
            Proc.EnableRaisingEvents = true;
            Proc.Exited += new EventHandler(Proc_Exited);
           
            try
            {
                //
                //启动外部程序
                //
                Proc.StartInfo = Info;
                Proc.Start();

            }
            catch (System.ComponentModel.Win32Exception ex)
            {
            }

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-25
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-10-27
  • 2021-11-06
  • 2022-12-23
  • 2021-10-17
  • 2022-12-23
相关资源
相似解决方案