Triggering a task on other application's startup

May 24, 2011 at 12:00 PM

I have developed an application that uses Task Scheduler internally for scheduling the tasks.

Now i want to schedule a task which would get triggered when an application launches (say for example a Browser or Paint application is launched) and ends when the triggering application is closed.
For example the task should get triggered when an application say A.exe executes and terminates when A.exe is terminated.

I tried creating a task for this using the Task Scheduler's 'On an event' trigger type, but couldn't get the desired functionality.
Is there any other way of creating such a task using Task Scheduler?


May 24, 2011 at 4:57 PM

I don't know of any way to do this and my only guess would be to look at using the EventTrigger as well. However, I don't have any idea what system events are fired, if any, on an application execution or termination. I would assume that somewhere there is a system event for process start and stops. If you figure something out, please submit the Subscription string you used.