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"
精彩评论