Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is it possible to run a task from the Windows XP Task Scheduler after 1 task is finished?

I have a list of programs that it should start up (program1.exe, program2.exe, program3.exe) I would like it that program2.exe starts X seconds/minutes after program1.exe has succesfully started.

program1.exe would be the first task to start after log on program2.exe would need to start when program1.exe is running (so not starting up) program3.exe would start after program2.exe is running.

Is this even remotely possible with the Task Scheduler in XP?


If this is not possible are there any recommendation programs that would do the job?

share|improve this question

migrated from Apr 3 '11 at 21:46

This question came from our site for professional and enthusiast programmers.

This is a programming forum, not a Windows help forum. Try the Windows XP documentation/forum. . – Hydrangea Apr 3 '11 at 17:15

Make program 1 produce some sort of output when it is complete. Have program 2 start at the same time as program 1, but loop until it finds that output. Have program 2 also produce an output that program 3 will be waiting for.

If you can't make the programs do this, then schedule just your own script that will determine when to start each program in a similar way. I assume each program does something that you can see somewhere.

share|improve this answer

Could you write a batch script to run program 1, sleep however long you want, run program 2, etc? It would look something like this:

timeout 60 /NOBREAK > NULL
timeout 60 /NOBREAK > NULL

The timeout trick I got from

share|improve this answer
Note that timeout only exists on Vista and 7. See… or the question you yourself linked to for XP alternatives. – Bob Apr 12 '12 at 13:20

You must log in to answer this question.