Run TUFLOW From a Batch-file: Difference between revisions

Content deleted Content added
Line 102:
<pre>
@echo off
 
:: This sets the variables as local, so you can use another batch file with A and B variables
SetLocal
 
:: set up variables
set B=Q010 Q020 Q050 Q100 Q200
set A=10minQ010 30minQ020 60minQ050 120minQ100 270minQ200
set B=10min 30min 60min 120min 270min
 
:: Loop Through
FOR %%b in (%B%) do (
FOR %%a in (%A% %%b) DOdo (
FOR %%b in (%B% %%a) doDO (
IF NOT %%ba==%%ab start "TUFLOW" /wait C:\TUFLOW\releases\2011-09\w64\TUFLOW_iSP_w64.exe -e1 %%ba -e2 %%ab filename.tcf
)
)
pause
</pre>
In order to test the syntax, you can test the batch file by replacing the following line:<br>