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.

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
1  
Well, technically...it 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
add comment

4 Answers

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
add comment

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
add comment

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
add comment

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
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.