I have three main applications.
I am trying to start them automatically at log on in a specific order with a given delay.
Here is an example of how I'd like everything to be:
User logs in.
Wait for given delay (say 1 minute to allow other start up items first.)
Run Application 1 Instance 1 w/arguments
Run Application 1 Instance 2 w/arguments
Run Application 1 Instance 3 w/arguments
Run Application 1 Instance 4 w/arguments
Run Application 1 Instance 5 w/arguments
Run Application 2 Instance 1
Run Application 2 Instance 2
Run Application 2 Instance 3
Run Application 3 Instance 1
Run Application 3 Instance 2 w/arguments
Currently I've tried a few different examples.
I've tried using a single Scheduled Task with a single Trigger (At startup with delay) and then a Start a Program action for each Application and Instance (10 Actions in total). The problem with this is the task will only run one application at a time. The application has to close before it moves on to the next and I can't one is closed before starting a new task. This doesn't help as I need all instances to be running at the same time.
I've tried making a scheduled task for each application instance with varying timers to try to start them in that order. This is tedious and doesn't always work in the proper order I want. It's also very difficult to make changes to.
Currently, my "solution" is just to create a batch file that runs everything, and use a delayed scheduled task to run the batch file. This "works" but is not ideal as the task is unable to detect if applications crash or restart them automatically (Application 2 tends to crash on network interruptions.)
Is there any solution to this? I would NOT like to download and install a third party application to handle this.
I am using Windows Vista Home Basic SP2.