Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

run a task after another task has ran

I have two tasks:

  1. runs WAMP
  2. opens Google Chrome

What I'm trying to do is to trigger task number 2 after task number 1 has already triggered. After WAMP's task has ran I would like to run Google Chrome's task.

Think of it as a callback function. When task 1 has finished running, trigger task 2.

Note: I'm trying to do that using windows 8.1 task scheduler

like image 676
kfirba Avatar asked May 05 '14 11:05

kfirba


Video Answer


1 Answers

You can Trigger the Task2 with 'On an event' option. Go to (Setting - Custom -Edit Event Filter) and put this code in the XML tab.

<QueryList>
  <Query Id="0" Path="Microsoft-Windows-TaskScheduler/Operational">
    <Select Path="Microsoft-Windows-TaskScheduler/Operational">*[EventData
[@Name='TaskSuccessEvent'][Data[@Name='TaskName']='\Task1']]</Select>
  </Query>
</QueryList>
like image 53
Lorena Pita Avatar answered Nov 15 '22 13:11

Lorena Pita