How do i run a shell command in asp.net ?
I basically want something like system("netstat -an");
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
System.Diagnostics.Process.Start("netstat", "-an");
Use Process.Start:
Process.Start
Process.Start("netstat", "-an");