Can I Run Command Line Programs

  • Thread starter Thread starter Steve Bishop
  • Start date Start date
S

Steve Bishop

I was wondering since ASP.Net and C# work server side, is it possible to
run command line programs from a Web page? I was wanting to active an
exe like program on the server from a hyperlink. Help appreciated.
Thanks.
 
Hi Steve,

Most likely depends on the permissions granted to ASP .NET applications. You
can try running a program by using the System.Diagnostics.Process class, but
intercepting its output and sending it to the HttpResponse will be tricky.

Also bear in mind that the program will be run under the IUSER_<machinename>
user which has very restrictive permissions by default.
 
Back
Top