亚洲午夜久久久久久噜噜噜,欧美+国产在线观看,日韩a片无码毛片免费看,爱如潮水日本免费完整版观看

C# 打開、運行exe文件的三種方式

開發(fā)技術 2016/4/17

方法一:
System.Diagnostics.ProcessStartInfo info = new System.Diagnostics.ProcessStartInfo(path);
info.WorkingDirectory = Path.GetDirectoryName(path); 
System.Diagnostics.Process.Start(info); 

方法二:
System.Diagnostics.Process.Start(path)

方法三:
string path = @"F:\2\"; //文件所在目錄
string filename = "a.exe";//文件名 
System.Diagnostics.Process p = new System.Diagnostics.Process();
p.StartInfo.FileName = "cmd.exe";
p.StartInfo.UseShellExecute = false;
p.StartInfo.RedirectStandardInput = true;
p.StartInfo.RedirectStandardOutput = true;
p.StartInfo.RedirectStandardError = true;
p.StartInfo.CreateNoWindow = true;
p.StartInfo.WorkingDirectory = path;
p.Start();
p.StandardInput.WriteLine(filename);
p.StandardInput.WriteLine("exit"); 

中國· 上海

谷谷二維碼
添加微信咨詢

CopyRight?2009-2019 上海谷谷網(wǎng)絡科技有限公司 All Rights Reserved. 滬ICP備11022482號-8  

關于我們 | 聯(lián)系我們

主站蜘蛛池模板: 铜鼓县| 翁源县| 崇文区| 玉龙| 徐闻县| 桂平市| 孟津县| 二连浩特市| 南康市| 灵丘县| 顺昌县| 霸州市| 林州市| 芜湖县| 红桥区| 报价| 肃宁县| 玛曲县| 平定县| 新蔡县| 萨嘎县| 潢川县| 揭阳市| 敖汉旗| 万安县| 衡水市| 文成县| 门头沟区| 大余县| 安溪县| 宜兴市| 资兴市| 镇康县| 和林格尔县| 怀远县| 潍坊市| 新宁县| 吴桥县| 伊宁市| 乐亭县| 右玉县|