public static void StopProcess(string processName)
{
try
{
Process[] processes = System.Diagnostics.Process.GetProcesses();
foreach(Process item in processes)
{
if(item.ProcessName.Contains(processName.Replace(".exe","")))
{
item.Kill();
break;
}
}
}
catch
{
}
}