国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 網站 > 建站經驗 > 正文

ASP.NET 運行!.bat文件的實現方法

2019-11-02 14:31:17
字體:
來源:轉載
供稿:網友

   // Create the ProcessInfo object

  System.Diagnostics.ProcessStartInfo psi = new System.Diagnostics.ProcessStartInfo("cmd.exe");

  psi.UseShellExecute = false;

  psi.RedirectStandardOutput = true;

  //psi.RedirectStandardInput = true;

  psi.RedirectStandardError = true;

  psi.Arguments = "/K C:temptest.bat";

  psi.WorkingDirectory = "c:temp";

  // Start the process

  System.Diagnostics.Process proc = System.Diagnostics.Process.Sta

電影下載[www.aikan.tv/xzhtml/dyxz/]
rt(psi);

  // Attach the output for reading

  System.IO.StreamReader sOut = proc.StandardOutput;

  proc.Close();

  // Read the sOut to a string.

  string results = sOut.ReadToEnd().Trim();

  sOut.Close();

  // Write out the results.

  string fmtStdOut = "{0}";

  this.Response.Write(String.Format(fmtStdOut, results.Replace(System.Environment.NewLine, "
")));

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 德钦县| 公主岭市| 安塞县| 溧水县| 安乡县| 樟树市| 邢台市| 哈尔滨市| 会东县| 新建县| 临桂县| 古交市| 行唐县| 措美县| 沂水县| 永清县| 华宁县| 确山县| 尚志市| 沂源县| 柯坪县| 连江县| 南丹县| 鄯善县| 高平市| 九龙城区| 鄂伦春自治旗| 安溪县| 客服| 东丽区| 河东区| 丹江口市| 平山县| 元谋县| 泰来县| 额尔古纳市| 鹤岗市| 财经| 尼勒克县| 喀什市| 天全县|