Calling multiple bat files from one bat file

Asked by Ned

I have four working bat files that look like just like this apart from the filenames:

start /i /b /w C:\SikuliX\runIDE.cmd -r "C:\AssemblaSVN\testingwc\trunk\Sikuli Scripts\Ned\Tests\Retail\Data Conversion\CTFileMissing.sikuli" > "C:\AssemblaSVN\testingwc\trunk\Sikuli Scripts\Ned\Tests\logging\Retail\Data Conversion\CTFileMissing.txt"

These work just fine for me individually but if I try to call all four together with another bat file that looks like this:

call "MissingInfo.bat"
call "CTFileMissing.bat"
call "InvalidAPIURL.bat"
call "DBAlreadyExists.bat"

EXIT

It always exits after the first call. I don't have EXIT in any of the individual bats.
Any help would be appreciated

Regards,
Ned

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
RaiMan
Solved:
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

no idea.

but what if you use

start /i /b /w

instead of call

Revision history for this message
Ned (nedleonard) said :
#2

Thanks Raiman unfortunately it didn't seem to make a difference - nothing happens

The Scripts run individually
http://i.imgur.com/ITABbPj.png

This bat file won't call them together
http://i.imgur.com/jaHIg9e.png

This bat file won't call them together but does call the first test
http://i.imgur.com/tptOgWL.png

Revision history for this message
Best RaiMan (raimund-hocke) said :
#3

A wise man said: when looking for a solution, one should start with the most simple one ;-)

this is the simplest one, that works:

some bats (first.bat, second.bat, third.bat, …) only containing
C:\SikuliX\runIDE.cmd -r "somescript.sikuli" > "somelog.txt"

and the bat to run them all in sequence
call first
call second
call third

Revision history for this message
Ned (nedleonard) said :
#4

That seems to do the trick!
Thanks!

I had tried something like that already but mistakenly thought that the scripts were executing on top of each other- when in fact a script had failed and the next one was called immediately