Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: using NET START on windows  (Read 1854 times)

0 Members and 1 Guest are viewing this topic.

gauravpahuja

    Topic Starter


    Newbie

    using NET START on windows
    « on: July 30, 2008, 12:28:18 AM »
    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]
    « Last Edit: July 30, 2008, 05:20:51 AM by Carbon Dudeoxide »