开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜