Command-Line Operations

SpatialAnalyzer has a series of command-line arguments that allow you to automate some tasks when launching the program:

Combinations of these arguments may be executed at the same time. Quotes are required around the elements (filenames, instrument names, and object names) if they contain spaces.

 

Launching SA with Command-Line Arguments

Command-line arguments were traditionally used when running a program from the DOS (command prompt) window. Now that graphical operating systems like Windows have become standard, command-line arguments are usually entered by use of a shortcut icon. Regardless, they can still be executed from the Windows command prompt.

To Use Command-Line Arguments from the Windows Command Prompt:

  1. In the windows search box, type cmd and press Enter.

  2. In the resulting window, navigate to the SpatialAnalyzer install directory by typing cd {PATH}, where {PATH} is the path to the SA install directory. For example, cd C:\Program Files (x86)\New River Kinematics\SpatialAnalyzer 2024.2.0923.4\x64\ Press Enter.

  3. Type “Spatial Analyzer64” {ARGUMENTS}, where {ARGUMENTS} includes one or more of the arguments listed above. Press Enter.

  4. SA should launch, using the parameters that you specified in the arguments.

 

To Use Command-Line Arguments via a Shortcut Icon:

  1. Create a shortcut for the SpatialAnalyzer program (C:\Program Files (x86)\New River Kinematics\SpatialAnalyzer 2024.2.0923.4\x64\Spatial Analyzer64.exe).

  2. Right-click on the icon and choose Properties.

  3. In the Properties dialog, locate the Target field, add a space at the end of the text in this field, then add the arguments as specified above. When finished, click the OK button.

  4. Double-click the icon to start SA with the specified parameters.

 

Example Command-Line Arguments: