Run a batch file on exiting specific program

1

1

I want a batch file to run when I exit a specific program, Nokia Suite in my case. I want to use Windows 7 task scheduler and would prefer avoiding any 3rd party program.

I have already checked Application event log and Nokia Suite seems to generate only one event with event ID 1.

Is it possible to achieve this using windows task scheduler?

tumchaaditya

Posted 2012-05-03T14:54:22.873

Reputation: 3 624

It's possible if you start Nokia with a batch file, then kick off the next step after it runs. – None – 2012-05-03T15:32:53.683

Answers

4

I would just write a batch file that starts the application then does what you want it to do after. This way the batch processing pauses while your Nokia stuff is running, then when it quits, goes on to the next line. Check out http://technet.microsoft.com/en-us/library/cc721871.aspx. For help on batch files see http://commandwindows.com/batch.htm.

Seann

Posted 2012-05-03T14:54:22.873

Reputation: 68

nice idea.. will still wait for some better idea though.. – tumchaaditya – 2012-05-04T02:43:22.850

0

I haven't tested this, but it seems like it should work.

Open the Task Scheduler & Create a Task

On the Triggers Tab, press "New.." and Set Begin the task: On an Event Log : Application Source: Application Event ID: 1

On the Actions Tab, press "New.." and Set Action: Start a program Program/Script: yada.bat (or possibly: cmd /c yada.bat) etc.

coderMark

Posted 2012-05-03T14:54:22.873

Reputation: 1