System.Diagnostics.ProcessStartInfo Info = new System.Diagnostics.ProcessStartInfo();

            //设置外部程序名  
            Info.FileName = "eclipse.exe";

            //设置外部程序工作目录为   C:\  
            Info.WorkingDirectory = @"D:\常用软件\eclipse";

            //最小化方式启动
            Info.WindowStyle = System.Diagnostics.ProcessWindowStyle.Minimized;

            //声明一个程序类  
            System.Diagnostics.Process Proc;

            try
            {
                Proc = System.Diagnostics.Process.Start(Info);
                System.Threading.Thread.Sleep(500);
            }
            catch (System.ComponentModel.Win32Exception)
            {
                return;
            }
打开指定程序

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-01
  • 2022-12-23
  • 2022-12-23
  • 2021-08-07
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-10-01
  • 2022-01-07
  • 2021-09-07
  • 2021-07-13
相关资源
相似解决方案