check if a service is running and if yes then run batch code

SC queryex easy | FIND "STATE" | FIND /v "RUNNING" > NUL && ( ECHO easy is NOT running ) || ( ECHO easy is running dos code here )

Commentaires

Posts les plus consultés de ce blog

CRM dynamics V9 wait Async web API to contiue code

How to connect to Crm Dynamics On Premis 2016 with Consol App

promise example