Run TUFLOW From a Batch-file: Difference between revisions
Content deleted Content added
Line 124:
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 on using the following syntax:
<pre>
@echo off
SetLocal
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
pause
</pre>
This can be extended to more variables for example:
<pre>
@echo off
SetLocal
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
pause
</pre>
| |||