<output id="qn6qe"></output>

    1. <output id="qn6qe"><tt id="qn6qe"></tt></output>
    2. <strike id="qn6qe"></strike>

      亚洲 日本 欧洲 欧美 视频,日韩中文字幕有码av,一本一道av中文字幕无码,国产线播放免费人成视频播放,人妻少妇偷人无码视频,日夜啪啪一区二区三区,国产尤物精品自在拍视频首页,久热这里只有精品12

      用cmd的方式執(zhí)行exe程序

      在asp.net中調(diào)用process.start執(zhí)行程序,需要設(shè)置運(yùn)行iis進(jìn)程用戶(hù)的權(quán)限,比較麻煩, MS的站點(diǎn)上有一篇說(shuō)明:
      http://support.microsoft.com/default.aspx/kb/555134  (估計(jì)頁(yè)面404)
      換種方法,可以先執(zhí)行cmd.exe,然后以參數(shù)形式調(diào)用bat文件即可,參考文章:
      http://codebetter.com/blogs/brendan.tompkins/archive/2004/05/13/13484.aspx
         

      此文章主要內(nèi)容是:

      // Get the full file path
      string strFilePath = “c:\\temp\\test.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.WorkingDirectory = “c:\\temp\\“;
      
      
      // Start the process
      System.Diagnostics.Process proc = System.Diagnostics.Process.Start(psi);
      
      
      
      // Open the batch file for reading
      System.IO.StreamReader strm = System.IO.File.OpenText(strFilePath);
      
      
      // Attach the output for reading
      System.IO.StreamReader sOut = proc.StandardOutput;
      
      
      // Attach the in for writing
      System.IO.StreamWriter sIn = proc.StandardInput;
      
      
      
      // Write each line of the batch file to standard input
      while(strm.Peek() != -1)
      {
        sIn.WriteLine(strm.ReadLine());
      }
      
      
      strm.Close();
      
      
      // Exit CMD.EXE
      string stEchoFmt = “# {0} run successfully. Exiting”;
      
      
      sIn.WriteLine(String.Format(stEchoFmt, strFilePath));
      sIn.WriteLine(“EXIT”);
      
      
      // Close the process
      proc.Close();
      
      
      // Read the sOut to a string.
      string results = sOut.ReadToEnd().Trim();
      
      
      
      // Close the io Streams;
      sIn.Close();
      sOut.Close();
      
      
      
      // Write out the results.
      string fmtStdOut = “<font face=courier size=0>{0}</font>”;
      this.Response.Write(String.Format(fmtStdOut,results.Replace(System.Environment.NewLine, “<br>”)));

       

      .bat 的寫(xiě)法:

      @echo off
      path = %path%;.\..\Process\;
      UILessRevit2018.exe
      pause

       

       

       1、

      @echo off:默認(rèn)

      path = %path%;.\..\Process\; 其中%path%是必須,.\..\Process\是相對(duì)于2018.bat的路徑
      UILessRevit2018.exe 是要執(zhí)行的程序
      pause是防止窗體關(guān)閉而已。
      posted @ 2020-10-14 09:44  就一個(gè)  閱讀(4267)  評(píng)論(0)    收藏  舉報(bào)
      主站蜘蛛池模板: 色99久久久久高潮综合影院| 久久国产精品夜色| 真人作爱90分钟免费看视频| 丝袜人妖av在线一区二区| 亚洲国产成人精品无码区在线观看| 欧美丰满熟妇bbbbbb| 国内精品久久久久电影院| 人妻av一区二区三区av免费| 国产色无码专区在线观看| 亚洲不卡一区二区在线看| 精品精品亚洲高清a毛片| 国产亚洲精品福利在线无卡一| 国产精品色呦呦在线观看| 高清精品一区二区三区| 亚洲色婷婷综合久久| 狠狠躁夜夜躁人人爽天天5| 国产精品v欧美精品∨日韩| 亚洲另类欧美综合久久图片区| 精品国产亚洲一区二区三区| 女子spa高潮呻吟抽搐| 国产精品中文字幕观看| 夜夜偷天天爽夜夜爱| 午夜在线观看成人av| 国产精品v欧美精品∨日韩| xbox免费观看高清视频的软件| 欧美色欧美亚洲高清在线视频 | 久久99精品国产99久久6尤物| 亚洲精品不卡无码福利在线观看 | 免费人成网站免费看视频| 国产中文三级全黄| 自拍偷在线精品自拍偷免费| 久久亚洲精品11p| 人妻丰满熟妇av无码区| 台北县| 亚洲午夜久久久久久噜噜噜| 亚洲欧洲日韩国内高清 | 平陆县| 亚洲精品美女一区二区| 野外少妇被弄到喷水在线观看| 国产在线啪| 男人天堂亚洲天堂女人天堂|