Run TUFLOW From a Batch-file: Difference between revisions

Content deleted Content added
m Protected "Run TUFLOW From a Batch-file": High traffic page ([edit=sysop] (indefinite) [move=sysop] (indefinite))
No edit summary
Line 12:
Open this file in a text editor and add the following line.
 
<pre>"C:\TUFLOW\Releases\20102011-1009\w32\TUFLOW_iSP_w32.exe" "M01_5m_001.tcf"</pre>
This is the simplest command line for starting TUFLOW, the line above contains only two arguments, the first is the path to the TUFLOW executable and the second argument "M01_5m_001.tcf" is the simulation file name. Depending on the location of the executable the above command line will need to be modified. The quotations around the TUFLOW executable and the .tcf file name are only required if there are spaces in the file names. However, it is recommended to include these to avoid problems.
 
'''TIP:'''<br>
A second line with the text "pause" can be added, this will prompt the user to press a key at the end of the batch file. This is useful if the DOS window disappears from the screen, before you can read the output, the pause command will keep the window open.
<pre>"C:\TUFLOW\Releases\20102011-1009\w32\TUFLOW_iSP_w32.exe" "M01_5m_001.tcf"
pause</pre>