Home » Forum

Forum

c# close running ex...
 
Notifications
Clear all

c# close running exe

   RSS

0
Topic starter

How to close running exe file in c# code

Process[] processes=Process.GetProcessesByName("service name");

//Process.GetProcessesByName("conhost");

foreach (var process in processes)
{
process.Kill();
}

Share: