I would like to know how to check if a service is running using a batch file
e.g.
if xxxx service is running
go to start stage2.bat
else go to echo Service not running
Any help would be appreciated
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Similar to How to check if a process is running via a batch script
EDIT:
From the post, with an added else statement:
For a service: