how to end process from background in C#

Опубликовано: 20 Октябрь 2024
на канале: IT Core Soft
435
3

Download from this link:https://github.com/hamza3344/killprocess
My fiverr link: https://www.fiverr.com/hamzakhalid178
My Upwork Profile: https://www.upwork.com/freelancers/~0...

Whatsapp Number: +923338672398

if you have any problem comment below. please like, share and subscribe the channel. Contact me on [email protected] if you need any custom software, website and mobile Application.

code:

using System.Diagnostics;
private void killtheprocess(string name)
{
foreach(Process clsProcess in Process.GetProcesses())
{
if(clsProcess.ProcessName.Equals(name))
{
clsProcess.Kill();
}
}
}