how run exe file in c# [duplicate]
问题 This question already has answers here : Closed 8 years ago . I made an application that requires functionality to run iisreset.exe. My application is on deploy in server. so iisreset should be server not client machine. I use process.start() but it reset iis of client machine. what code i should modify. 回答1: Use the Process class to execute a process. How To: Execute command line in C#, get STD OUT results // Start the child process. Process p = new Process(); // Redirect the output stream