Finding out Windows service's running process name .NET 1.1

前端 未结 6 639
野性不改
野性不改 2020-12-30 08:48

We are using a badly written windows service, which will hang when we are trying to Stop it from code. So we need to find which process is related to that service and kill i

6条回答
  •  余生分开走
    2020-12-30 09:21

    You can use

    tasklist /svc /fi "SERVICES eq YourServiceName"
    

    To find the process name and id, and also if the same process hosts other services.

提交回复
热议问题