Executable (string): The filename of the executable to kill.
Executable
For Windows, this is the basename (e.g. "notepad.exe").
notepad.exe
For Linux it can be the basename (e.g. "firefox") or the full path (e.g. "/usr/lib64/firefox/firefox").
firefox
/usr/lib64/firefox/firefox
Killed (int): The number of processes successfully killed.
Killed
Failed (int): The number of processes that could not be killed.
Failed
OperatingSystem.KillProcesses(Executable:"notepad.exe");
OperatingSystem.KillProcesses(Executable:"/usr/lib64/firefox/firefox");