Previous Topic: Watch and Edit Script VariablesNext Topic: Specify the Target Platform for a Script


Specify Arguments for Scripts

You can pass arguments to a script, which, for example, can minimize the need for interaction.

To specify arguments

  1. Select Options, Arguments.

    The Script Arguments dialog opens.

  2. Select the unit type, which determines the initialization invoked.

    Selecting one of these values terminates the DMScript Interpreter session and starts a new session with the new parameters.

  3. Enter the arguments to pass to the script in the Arguments field, and click OK.

    The script executes the arguments.

Note: To retrieve the arguments passed to a script, use the functions argc() and argv().