Currently it blindly stop a list of services and Can blindly start them back.
I'm looking for the ability to stop the service ONLY if it is running
I got this peice of code from another thread, but it won't start themes back
sc query Themes| findstr /i running | if "%errorlevel%"=="0" (sc stop Themes) else (sc start Themes)
I'm not sure what I am missing. (not a programmer for one)
I don't think the errorlevel should be used in this instance.
Can someone lead me in the right direction? Any help is greatly appreciated.