Very simple. Just loop through the processes list and check the name of the current process:
//don't forget: using System.Diagnostics;
Process p = Process.GetProcesses();//system processes in an array
for (int i = 0; i < p.Length; i++)
if (p[i].ProcessName == "calc")//checkcurrent process name
//we got it
MessageBox.Show("Calculator process found - we will kill it after you press ok");
p[i].Kill();//this is the process
catch (Exception ex)
Their name does not contain the *.exe extension. Good luck :).
I Developed application in C# with crystal reports and created setup file in third party (Advance) Installer.When i installed my application on client system application is working but ...