Starting an Executable When a Task is Registered

Writing a task that starts an executable when a task is registered is done by defining a registration trigger and an executable action.

Registration Trigger

Registration triggers start a task as soon as it is registered. You can also specify a delay for the registration trigger, which starts a task after a specific amount of time (the delay) after the task is registered. The delay is specified in the Delay property of the IRegistrationTrigger interface (RegistrationTrigger for scripting).

Note

When a task with a registration trigger is updated, the task will execute after the update occurs.

 

Registration Trigger Examples

The following examples start Notepad when a task is registered:

Using the Task Scheduler