1.

Solve : How to start a paused Windows Service in batch mode??

Answer»

I have a batch file RUNNING every night to stop/start a service for data backup purpose. Now I have two services - Service1 and Service2. I need to just stop & then start Service1 for data backup. However, Service2 is dependent on Service1, and this pauses when Service1 is stopped.

Is there a WAY to start Service2?

can we use a command like 'netstart' or 'sc'?If you know the timing of your backup as to when it will finish, you COULD run a scheduled task as a seperate batch to TRIGGER a scheduled event to start the service back up with netstart command. Then your already paused batch should pick up where it left off when the service condition changes. That is as long as you dont have a PAUSE command in your batch which would require a keystroke, and the pause of the batch is waiting for a condition to be true before progressing further.Hi am a bit confused.
Let me phrase my question again.
STOPPING Service1 results in stopping of Service2.
So, is there a way I can include in my batch file a command like ..netstart "Service2" ?



Discussion

No Comment Found