欧美极品高清xxxxhd,国产日产欧美最新,无码AV国产东京热AV无码,国产精品人与动性XXX,国产传媒亚洲综合一区二区,四库影院永久国产精品,毛片免费免费高清视频,福利所导航夜趣136

標(biāo)題: C#執(zhí)行指定路徑下的Exe程序 [打印本頁(yè)]

作者: hongniu    時(shí)間: 2015-6-25 16:44
標(biāo)題: C#執(zhí)行指定路徑下的Exe程序
簡(jiǎn)單的執(zhí)行系統(tǒng)指定的exe程序,沒(méi)什么好說(shuō)的,直接貼代碼

        /// <summary>

        /// 執(zhí)行系統(tǒng)指定路徑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;   // 設(shè)置窗體
            Process pro = Process.Start(info);  // 啟動(dòng)
        }






歡迎光臨 (http://m.raoushi.com/bbs/) Powered by Discuz! X3.1