Kill Process in C# Application

23 Oct

using System.Diagnostics;


public bool FindAndKillProcess(String name)
foreach (Process clsProcess in Process.GetProcesses())
if (clsProcess.ProcessName == name)
return true;
return false;

1 Comment

Posted by on October 23, 2009 in C#


One response to “Kill Process in C# Application

  1. garage door repair

    August 5, 2014 at 4:38 AM

    It’s an remarkable piece of writing in support of all the internet
    viewers; they will take benefit from it I am sure.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: