Run TUFLOW From a Batch-file: Difference between revisions
Content deleted Content added
No edit summary |
|||
Line 112:
:: Loop Through
FOR %%a in (%A%) do (
FOR %%b in (%B%
)
)
Line 119:
</pre>
In order to test the syntax, you can test the batch file by replacing the following line:<br>
<tt>
With the following line:<br>
<tt>
By using the echo in the command line, rather than starting the simulations the command line will be displayed in the DOS output. In the example above the DOS output is shown in the image below.
[[File:DOS nested batch output.png|frame|none]]
Alternatively this can be achieved
<pre>
@echo off
setlocal
set A=Q010 Q020 Q050 Q100 Q200
for %%1 in (Q010 Q020 Q050 Q100 Q200) do for %%2 in (10min 30min 60min 120min 270min) do start "TUFLOW" /wait C:\TUFLOW\releases\2011-09\w64\TUFLOW_iSP_w64.exe -e1 %%1 -e2 %%2 filename_~e1~_~e2~.tcf▼
set B=10min 30min 60min 120min 270min
▲
pause
</pre>
Line 135 ⟶ 138:
<pre>
@echo off
setlocal
set A=Q010 Q020 Q050 Q100 Q200
for %%1 in (Q010 Q050 Q100) do for %%2 in (30min 60min 360min) do for %%3 in (exg dev) do echo start "TUFLOW" /wait C:\TUFLOW\releases\2011-09\w64\TUFLOW_iSP_w64.exe -e1 %%1 -e2 %%2 -s1 %%3 filename_~e1~_~e2~_~s1~.tcf▼
set B=10min 30min 60min 120min 270min
set C=Exg Dev Mit
▲
pause
</pre>
| |||