Reputation: 2630
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.
Upvotes: 4
Views: 11343
Reputation: 100258
call System.Diagnostics.Process.Start("netstat", "-an");
as usually
Upvotes: 7