Difference between revisions of "Batch File Not Running"

From Tuflow
Jump to navigation Jump to search
Line 1: Line 1:
 
=Description=
 
=Description=
When running TUFLOW with a batch file, the command prompt shows error before running any model, or opens a new file Explorer.<br>
+
When running TUFLOW with a batch file and setting the TUFLOW executable path of other commands as variable, the command prompt shows error and no simulations are executed (as shown below).<br>
 
[[File: Batch_File_Not_Running.png ]]
 
[[File: Batch_File_Not_Running.png ]]
 
<br>
 
<br>
 
 
=Suggestions=
 
=Suggestions=
This is most likely caused by inadvertently adding a " "(space) before and/or after the "=" in the batch file<br>.
+
This is most likely caused by using a " "(space) before and/or after the "=" in the batch file after the set variable command<br>.
Wrong format:
+
For example (incorrect format):
 
{| class="wikitable "  
 
{| class="wikitable "  
 
|-
 
|-
Line 12: Line 11:
 
  <tt>set TUFLOWEXE = C:\TUFLOW\Releases\2017-09-AC\w64\TUFLOW_iSP_w64.exe</tt>
 
  <tt>set TUFLOWEXE = C:\TUFLOW\Releases\2017-09-AC\w64\TUFLOW_iSP_w64.exe</tt>
 
|}
 
|}
Correct format:
+
To solve this issue, please remove the " "(space) next to the "=".<br>
 +
for example (correct format):
 
{| class="wikitable "  
 
{| class="wikitable "  
 
|-
 
|-
Line 18: Line 18:
 
  <tt>set TUFLOWEXE=C:\TUFLOW\Releases\2017-09-AC\w64\TUFLOW_iSP_w64.exe</tt>
 
  <tt>set TUFLOWEXE=C:\TUFLOW\Releases\2017-09-AC\w64\TUFLOW_iSP_w64.exe</tt>
 
|}
 
|}
To solve this issue, please remove the " "(space) next to the "=".
 

Revision as of 15:28, 1 February 2018

Description

When running TUFLOW with a batch file and setting the TUFLOW executable path of other commands as variable, the command prompt shows error and no simulations are executed (as shown below).
Batch File Not Running.png

Suggestions

This is most likely caused by using a " "(space) before and/or after the "=" in the batch file after the set variable command
. For example (incorrect format):

set TUFLOWEXE = C:\TUFLOW\Releases\2017-09-AC\w64\TUFLOW_iSP_w64.exe

To solve this issue, please remove the " "(space) next to the "=".
for example (correct format):

set TUFLOWEXE=C:\TUFLOW\Releases\2017-09-AC\w64\TUFLOW_iSP_w64.exe