how to kill process in Windows-CE?

前端 未结 5 2004
野的像风
野的像风 2020-12-21 02:51

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

5条回答
  •  臣服心动
    2020-12-21 03:04

    Once you have found your process you can call Kill command.

    it's in System.Diagnostics and supported in .NET Compact Framework as well, see here:

    Process.Kill Method

    Unfortunately it looks like Process.GetProcess does not work in the .NET CF so you should use another way to find your process before killing it, there are also articles about this:

    Compact Framework Process class that supports fully specified file paths

提交回复
热议问题