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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top