Windows 2003 Server Question
Is possible to make a
scheduled task on windows 2003 server be dependent on the successful execution of a
separate task?
November 4th, 2011 3:34pm
You need two batch, the first is the scheduled manually the second is scheduled automatically from the first only after a successful execution
::first batch
yourapp.exe
:: if everythink is ok the second task is created
if %errorlevel%==0 schtasks /create /tn "Second Task" /tr c:\second.cmd /sc daily /st 08:00:00
::end
Gastone Canali
http://www.armadillo.it
Free Windows Admin Tool Kit Click here and download it now
November 4th, 2011 8:25pm
There are more possibilities,eg
1. If you read Last Result status, you may have more granular decision branching.
2. You can save or pass a parameter from the first task and test it in second task
3. You can use eventtriggers function in some cases namely security ones chaining this function with mail agent (there are free ones).
Regards
Milos
November 5th, 2011 4:45am
There are more possibilities,eg
1. If you read Last Result status, you may have more granular decision branching.
2. You can save or pass a parameter from the first task and test it in second task
3. You can use eventtriggers function in some cases namely security ones chaining this function with mail agent (there are free ones).
Regards
Milos
Free Windows Admin Tool Kit Click here and download it now
November 5th, 2011 11:38am


