ASP.NET Shell Command

C

Chris Fink

How do I execute the shell command from within a asp.net app?

This works in a c# console app, but not in a asp.net web app. The dos
window never opens or shows any sign of activity on the web.

System.Diagnostics.Process proc = new System.Diagnostics.Process();
proc.EnableRaisingEvents=false;

proc.StartInfo.FileName="c:\\temp\\test.bat";

proc.Start();

I assume it is because of security concerns on the web. Any suggestions on
how to perform this task on the web?

Thanks
 

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

Members online

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,813
Latest member
lawrwtwinkle111

Latest Threads

Top