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");
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With