I just know about process killing and try to test it, here is my code:
using System.Diagnostics;var processes = Process.GetProcessesByName("Sublime Text ");foreach(var process in processes){ process.Kill();}Console.WriteLine("Process is killed");
using System.Diagnostics;var processes = Process.GetProcessesByName("Sublime Text ");foreach(var process in processes){ process.Kill();}Console.WriteLine("Process is killed");
When I run the program, there's no error occurred but the Sublime Text process doesn't killed, isn't killing a process means we have it vanished in Task Manager ?. Since there is no error so I have no idea where i'm wrong