powershell - Creating dependencies in task scheduler -


I have set up a few daily tasks that update an SQL table and then send an email with CSV attached. Only 5 of the specified tasks are successfully completed if the first task is successfully executed if the task was successfully completed, then how would I add an argument to the task scheduler to run only sequential tasks? The logic behind the request is due to the issue that sometimes the first script runs in a few minutes and the second day may take up to an hour to complete it. Any suggestions? Thanks

I do not think what you want is possible with the Windows task scheduler I propose it That you start the script, which depend on the first one that successfully runs on the first script. In this way you can make sure that he has completed his work.

Apart from this, the title of your question is misleading, like "Making dependence in the work scheduler" would be better.


Comments