【IT168技术文档】
用c#关闭进程
C# code
p.StartInfo.FileName = "cmd.exe"; p.StartInfo.Arguments = "/c explorer.exe"; p.StartInfo.UseShellExecute = false; p.StartInfo.RedirectStandardInput = true; p.StartInfo.RedirectStandardOutput = true; p.StartInfo.RedirectStandardError = true; p.StartInfo.CreateNoWindow = true; p.Start(); p.StandardInput.WriteLine("exit");Process p = new Process();