Win XP Task Scheduler

1

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?

Raskaroth

Posted 2011-04-03T17:02:00.250

Reputation:

This is a programming forum, not a Windows help forum. Try the Windows XP documentation/forum. http://windows.microsoft.com/en-US/windows/help/windows-xp .

– None – 2011-04-03T17:15:32.600

Answers

1

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.

John

Posted 2011-04-03T17:02:00.250

Reputation: 11

0

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:

program1.exe
timeout 60 /NOBREAK > NULL
program2.exe
timeout 60 /NOBREAK > NULL
program3.exe

The timeout trick I got from https://stackoverflow.com/a/4317055/686041

Konstantin Tarashchanskiy

Posted 2011-04-03T17:02:00.250

Reputation: 119

Note that timeout only exists on Vista and 7. See http://stackoverflow.com/questions/1672338/how-to-sleep-for-5-seconds-in-windowss-command-prompt-or-dos or the question you yourself linked to for XP alternatives.

– Bob – 2012-04-12T13:20:32.530