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

To test an SSD RAID setup I would like some way of scripting the sequantial launch of a number of programs.

How can I do this?

With a Windows batch file I can only either open all at once og wait for previous program to terminate.

EDIT: The main objective is to know when all the programs have finished loading.

share|improve this question
Well, does open 'in order' and not all at once, it just does it very fast. ;) – Bobby Jul 9 '10 at 12:48
Yeah, maybe what I want does not make sense. But the plan was for the next program to start launching when the previous had finished loading. – lox Jul 9 '10 at 16:22
sequantial --> sequential once og wait --> once oR wait – matt wilkie Jul 9 '10 at 19:02

You say the following:

With a Windows batch file I can only either open all at once og wait for previous program to terminate.

So you need to make delay between the program launches?

share|improve this answer
The main purpose of my request was to make sure that if the last program in my list of programs to launch was Notepad, the when it all had finished the Notepad window would be the top most window. – lox Jul 9 '10 at 16:26

Perhaps Sikuli would work for you, a "visual technology to search and automate graphical user interfaces (GUI) using images (screenshots)." Use it to wait for the image of successfully started app#1, then launch app#2,...

share|improve this answer

Using StartX you can do what you ask. :-)

share|improve this answer
Low Quality alert – soandos Aug 2 '12 at 1:16
@soandos: Thanks, will improve when I am at home again. – Tom Wijsman Aug 4 '12 at 8:20

No need to install external tools, just use the start command.

For instance:

start "" calc
start "" "%PROGRAMFILES%\MyCustomApp\App.exe"
start "" notepad "%USERPROFILE%\Documents\doc.txt"

You may want to add the /B switch to avoid the creation of another console window, but the launched apps stdout will mix in the launching console this way.

share|improve this answer

Not sure if this will solve your task, but if you write this way

cmd /C calc.exe
cmd /C calc.exe

in your batch file, then the shell will launch first calc, wait unitl you close it, then run the second.

hope it helps

share|improve this answer
No good. That means that i actively have to close the program. – lox Jul 9 '10 at 16:27

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .