开发者

Trying to kill a windows service and then restart it with a batch file

开发者 https://www.devze.com 2023-01-24 06:37 出处:网络
Im trying to kill a windows service and then restart it using just a batch file. I tried using the following code

Im trying to kill a windows service and then restart it using just a batch file.

I tried using the following code

TASKKILL /F /FI "USERNAME eq \SYSTEM" /IM NoDinero.exe

And was given this message:

"no tasks running w th开发者_StackOverflow中文版e specified criteria"


Stop a service: NET STOP "Service Name"

Start a service: NET START "Service Name"

0

精彩评论

暂无评论...
验证码 换一张
取 消