private static void killps(string processName)

        {

 

            Process[] process = Process.GetProcessesByName(processName);

            Process currentProcess = Process.GetCurrentProcess();

            foreach (Process p in process)

            {

                if (p.Id != currentProcess.Id)

                    p.Kill();

            }

           

        }

 

+ Recent posts