午夜国产狂喷潮在线观看|国产AⅤ精品一区二区久久|中文字幕AV中文字幕|国产看片高清在线

    asp.net 運行.bat文件的實現方法
    來源:易賢網 閱讀:575 次 日期:2014-10-27 14:16:58
    溫馨提示:易賢網小編為您整理了“asp.net 運行.bat文件的實現方法”,方便廣大網友查閱!

    // 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:\temp\test.bat;

    psi.workingdirectory = c:\temp\;

    // start the process

    system.diagnostics.process proc = system.diagnostics.process.start(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,

    )));

    更多信息請查看IT技術專欄

    更多信息請查看網絡編程
    易賢網手機網站地址:asp.net 運行.bat文件的實現方法

    2025國考·省考課程試聽報名

    • 報班類型
    • 姓名
    • 手機號
    • 驗證碼
    關于我們 | 聯系我們 | 人才招聘 | 網站聲明 | 網站幫助 | 非正式的簡要咨詢 | 簡要咨詢須知 | 新媒體/短視頻平臺 | 手機站點 | 投訴建議
    工業(yè)和信息化部備案號:滇ICP備2023014141號-1 云南省教育廳備案號:云教ICP備0901021 滇公網安備53010202001879號 人力資源服務許可證:(云)人服證字(2023)第0102001523號
    聯系電話:0871-65099533/13759567129 獲取招聘考試信息及咨詢關注公眾號:hfpxwx
    咨詢QQ:1093837350(9:00—18:00)版權所有:易賢網