Run TUFLOW From a Batch-file: Difference between revisions
Content deleted Content added
Line 299: 
FOR %%a in (%A%) do ( 
    FOR %%b in (%B%) DO ( 
        start "TUFLOW" /wait "C:\TUFLOW\Releases\2020-10-AE\TUFLOW_iSP_w64.exe" -b -e1 %%a -e2 %%b filename.tcf 
    ) 
) 
Line 305: 
</pre> 
In order to test the syntax, you can test the batch file by replacing the following line:<br> 
<tt>start "TUFLOW" /wait "C:\TUFLOW\Releases\2020-10-AE\TUFLOW_iSP_w64.exe" -b -e1 %%a -e2 %%b filename.tcf</tt><br> 
With the following line:<br> 
<tt><u>echo</u> start "TUFLOW" /wait "C:\TUFLOW\Releases\2020-10-AE\TUFLOW_iSP_w64.exe" -b -e1 %%a -e2 %%b filename.tcf</tt><br> 
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]] 
Line 318: 
set B=10min 30min 60min 120min 270min 
FOR %%a in (%A%) do FOR %%b in (%B%) do start "TUFLOW" "C:\TUFLOW\Releases\2020-10-AE\TUFLOW_iSP_w64.exe" -b -e1 %%a -e2 %%b filename_~e1~_~e2~.tcf 
pause 
</pre> 
Line 332: 
    FOR %%b in (%B%) do ( 
        FOR %%c in (%C%) do ( 
            start "TUFLOW" /wait "C:\TUFLOW\Releases\2020-10-AE\TUFLOW_iSP_w64.exe" -b -e1 %%a -e2 %%b -s1 %%c filename_~e1~_~e2~_~s1~.tcf 
        ) 
    ) 
 | |||