This might help. If I was doing this from dos and had tlist from the res kit i'd do something like
for /f "tokens=2" %%a in ('tlist ^|find "SERVICENAME"') do set service=%%a
if %service% == SERVICENAME then goto running
do something
:running
If you can issue the right shell command to make the above work in dos and set the variable in a way you can get it back into your script it might work.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.