Task Scheduler Event when an Application Ended

3

How can I make a Task in the Windows 7 Task Scheduler with Trigger when an Application Ends ?
I want to make a task when my "explorer.exe" process ends.
How can i make it ?

Amirreza Nasiri

Posted 2013-07-04T00:20:46.793

Reputation: 2 418

Answers

3

I don't see an in-built trigger for this. If the application in question creates its own custom task category and logs events such as app closure then of course you can make use of that, but otherwise I don't think Task Scheduler can help you with this.

A workaround would be to schedule a batch file/script to periodically check which tasks are running (using the tasklist command or similar) and react accordingly.

A program like Shutter can also be useful:

Shutter is a multifunctional scheduling utility, which has a user friendly and easy-to-use interface and supports many different Events and Actions. Events: Countdown, On Time, Winamp Stops, Low CPU Usage, User Inactive, Battery Low, Window Closes, Process Stops, Ping Stops, File Size Limit. Actions: Shutdown, Reboot, Log Off, Lock Workstation, Sleep, Hibernate, Monitor Turn Off, Un/Mute Master Volume, Hang Up, Alarm, Play Sound, Execute Program.

Desktop links can be created to execute any of the supported actions directly from desktop. Web Interface allows remote execution of actions and displays run-time information about the computer: Up Time, List of Processes, Screenshot of a Desktop, Program Execution, and more.

1

Karan

Posted 2013-07-04T00:20:46.793

Reputation: 51 857

0

Set up process termination logging. You can then have a scheduled task triggered by these events. The scheduled task can run a powershell script to examine the event and see if the image name is explorer.exe. If it does, then do whatever you want to do.

Jamie Hanrahan

Posted 2013-07-04T00:20:46.793

Reputation: 19 777