国产探花免费观看_亚洲丰满少妇自慰呻吟_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, "
")));

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 利川市| 桐柏县| 苏尼特右旗| 格尔木市| 温州市| 固阳县| 湖北省| 江西省| 健康| 灵石县| 衡东县| 同德县| 哈巴河县| 曲沃县| 临澧县| 灵山县| 高密市| 沅江市| 土默特右旗| 寻乌县| 武宁县| 寿阳县| 响水县| 乐山市| 晋城| 桐柏县| 永定县| 阳泉市| 健康| 肇州县| 南阳市| 上虞市| 彰武县| 克东县| 平泉县| 贡山| 二连浩特市| 宣恩县| 祥云县| 海城市| 深州市|