Running Process on Server via ASP.NET/C# on IIS

后端 未结 1 499
长发绾君心
长发绾君心 2021-01-23 03:53

What I am trying to do is run a batch file that is located on the webserver\'s desktop when a button is clicked. This is what I have thus far.

ProcessStartInfo          


        
1条回答
  •  长情又很酷
    2021-01-23 04:42

    Just change the third line to this:

      psi.UseShellExecute = true;
    

    or read this article which really gets the work done:

    http://support.microsoft.com/default.aspx?scid=kb;EN-US;889251

    0 讨论(0)
提交回复
热议问题