标题: C#执行指定路径下的Exe程序 [打印本页]

作者: hongniu    时间: 2015-6-25 16:44
标题: C#执行指定路径下的Exe程序
简单的执行系统指定的exe程序,没什么好说的,直接贴代码

        /// <summary>

        /// 执行系统指定路径Exe程序
        /// </summary>
        /// <param name="strFile">exe程序路径</param>
        private void StartOtherExe(string strFile)
        {
            ProcessStartInfo info = new ProcessStartInfo();
            info.FileName = strFile;    // 指定路径
            info.Arguments = "";
            info.WindowStyle = ProcessWindowStyle.Normal;   // 设置窗体
            Process pro = Process.Start(info);  // 启动
        }






欢迎光临 (http://www.51hei.com/bbs/) Powered by Discuz! X3.1