I\'m trying to do a batch program that needs to check if the service is installed before checking if it is running/stopped.
I would just like to ask if there is any way
sc query myService |find "myService" >nul will do the trick
sc query myService |find "myService" >nul