How do i run a shell command in asp.net ?
I basically want something like system("netstat -an")
;
I don't want the output to be displayed to the user. Just want to run some maintenance commands.
How do i run a shell command in asp.net ?
I basically want something like system("netstat -an")
;
I don't want the output to be displayed to the user. Just want to run some maintenance commands.
call System.Diagnostics.Process.Start("netstat", "-an");
as usually
Use Process.Start
:
Process.Start("netstat", "-an");