I need to write a bat script which starts 3 services in a predefined order and if any of these services doesn't start properly then script should terminate without trying to start services below it.
For Example: let there be 3 services ServiceA ServiceB, ServiceC.
First ServiceA should be started then ServiceB and then ServiceC.
If ServiceA doesnt start properly then script should terminate without starting ServiceB aand ServiceC. And also if ServiceB fails then it should not start ServiceB but also stop already started ServiceA.
Please help me in this.
Thanks in advance.
~Gaurav
[link removed - please don't advertise]