I need to know if a specific service is running from windows command-line, then get the result in a DOS variable.
I have tried the following, but this does not work :