How can I kill process Windows\MyProcc.exe from my terminal (Windows-CE 5.0) using C# code?
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();
}
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With