Run TUFLOW From PowerShell: Difference between revisions

Content deleted Content added
No edit summary
Line 5:
 
A PowerShell script can be created in a similar way to a batch file. For example, right click in File Explorer, then click New > Text Document, and then provide a file name and extension (.ps1 for PowerShell). Alternatively, when using the [[Create_TUFLOW_Project|Create TUFLOW Project Tool in QGIS]], a PowerShell script is automatically generated in addition to a batch file.
 
=Using PowerShell=
Open Windows PowerShell from the Windows start menu. When running a script via the PowerShell command line, the current working directory should typically be set to the same directory as the location of the script and TCF file. To change the current working directory, use the “cd” command. If there are spaces in your folder name use single quotations around the folder path (' '):
<pre>
cd '<Path-to-Tuflow-Runs-Folder>'
</pre>
 
=A simple example=
Line 18 ⟶ 24:
</pre>
 
When running a script via the PowerShell command line, the current working directory should typically be set to the same directory as the location of the script and TCF file. To change the current working directory, use the “cd” command:
<pre>
cd <Path-to-Tuflow-Runs-Folder>
</pre>
 
=Multiple simulations=