Running a Visual Basic script using the command line

The command line interface provides access to Visual Basic scripts from within the user interface.

The command line searches for scripts in the default project directory, typically My Documents\My AMI 2019 Projects\commands. If no script is found, it will look in C:\Program Files\Autodesk\Moldflow Synergy 2019\data\commands where xxxx is the software release number.

  1. Select View tab > Windows panel > User Interface > Command Line. The Command Line dialog appears.
  2. Enter the name of the script, without its file extension, followed by any command line arguments the script requires.

    For example, you may have a script named test_script.vbs which uses two numerical parameters (5 and 4 in this instance) that need to be input as command line parameters. Enter test_script 5 4 at the command line.

  3. Select Go. The script plays.