Run a series of EXE projects unattended

Best practices, code snippets for common functionality, examples, and guidelines.
itchy20
Posts: 5
Joined: Mon Nov 21, 2011 6:12 pm

Run a series of EXE projects unattended

Post by itchy20 » Tue Jan 15, 2013 1:26 pm

Hi,

We have (over time) produced many EXE projects each with a specific task for configuring and testing a specific part of our AUT. Each of these EXE project uses one or more .CSV for its input data. Assuming that we have all the input data correctly placed how can we run the EXE projects in sequence without user intervention.

We could use a batch file, but how do we make it run the series in order and how does it know when the first EXE is completed (Successfully) and it can start the second, third, fourth etc.

thanks
Richard

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Run a series of EXE projects unattended

Post by Support Team » Tue Jan 15, 2013 4:50 pm

Hello Richard,

You can use a batch file like the following with an if condition to make the trick.
@echo off 
call Test1.exe
if %ERRORLEVEL% == 0 call Test2.exe
Regards,
Bernhard
.
Image