Update 1
Code:
Code:
public static void EndTask(string taskname)
{
string processName = taskname;
foreach (Process process in Process.GetProcessesByName(processName))
{
process.Kill();
}
}
Code:
Code:
EndTask(notepad);
Notes:
Program needs admin privelages.
Filetypes such as (.exe) are Not Supported
Last edited: