Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to kill process in Windows-CE?

How can I kill process Windows\MyProcc.exe from my terminal (Windows-CE 5.0) using C# code?

like image 489
Gali Avatar asked Dec 17 '22 09:12

Gali


1 Answers

First find the Process by giving the running exe's name and kill it. Use the System.Diagnostics namespace.

Process[] Prs = Process.GetProcessesById(RunninExe);
if (Prs.Length > 0)
{
      foreach (Process Prss in Prs)
      {
          Prss.Kill();
      }
}
like image 177
Sai Kalyan Kumar Akshinthala Avatar answered Dec 27 '22 12:12

Sai Kalyan Kumar Akshinthala