Send CTRL_C/SIGINT to a process from C#
问题 I would like to interrupt a command running through cmd.exe. In the code below, I am using ping www.stackoverflow.com -t as an example. public void Run() { System.Diagnostics.ProcessStartInfo si = new System.Diagnostics.ProcessStartInfo("cmd.exe"); si.RedirectStandardInput = true; si.RedirectStandardOutput = true; si.RedirectStandardError = true; si.UseShellExecute = false; si.CreateNoWindow = false; //si.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden; System.Diagnostics.Process