Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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?

share|improve this question
    
It's possible if you start Nokia with a batch file, then kick off the next step after it runs. –  user3463 May 3 '12 at 15:32
add comment

2 Answers

up vote 4 down vote accepted

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.

share|improve this answer
    
nice idea.. will still wait for some better idea though.. –  tumchaaditya May 4 '12 at 2:43
add comment

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.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.