NoDinero
NoDinero

Reputation: 51

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 the specified criteria"

Upvotes: 0

Views: 676

Answers (1)

Mud
Mud

Reputation: 28991

Stop a service: NET STOP "Service Name"

Start a service: NET START "Service Name"

Upvotes: 2

Related Questions