Scripting with the Command Line Interface
The command line interface is useful to setup custom workflows and scripts.
You can choose between:
- SURE.exe - as the complete workflow in one executable (similar to the Graphical User Interface)
e.g. sure.exe -ori myorientation.prj -img C:\images -scenario AERIAL 80 30
- Modules - each module component (e.g. True Ortho) as one executable
The second one is particularly useful, when scripting custom modules combined with 3rd party software or repeated steps. For example, you can run the ModuleTrueOrtho with a custom list of input tiles instead of the full tile list dsmextended.txt.
Add executables to system PATH variable
During software installation, the SURE program folder can optionally be added to the system's path variable. By doing so you will be able to call all SURE executables, including SURE.exe, SUREViewer.exe, and the Module's executables, from every directory. This way you don't have to change directory to the SURE installation folder or specify the complete executables path.
- Open a command line window - using the following options (Windows):
- Open a command window with Windowskey-R, typing cmd and executing
- Click in any directory into the white space (avoid files or folder), use Shift-Rightclick and choose "Open Command Windows here" from the properties window
- Use a scripting environment or a .bat file to arrange multiple commands in an executable file
- Choose the desired module or executable
- In command window: add call and execute with Enter (can be paused with the "Pause" key on the keyboard)
- Create batch script
- Create new text file in desired folder
- Rename it from .txt to .bat
- Add one call per line
- Save file and execute with double click