Arguments

Type

REG_MULTI_SZ

Description

Contains a list of strings corresponding to the parameters passed on the command line given by the Command value. This value is optional.

The strings are placed on the command line, separated by a single space, in the implicit order of the REG_MULTI_SZ list. Separate arguments must appear on different lines in the REG_MULTI_SZ string. Quotation marks are placed around each argument to enforce this requirement.

Each string in this list is regarded as being of type REG_EXPAND_SZ to allow for expansion of environment variables of the form %<variable>%. SMS must expand any environment strings given in the parameter list.

Strings in the list with literal form are passed verbatim to the command line. $(Function) substrings are replaced with data retrieved from the active MDI window when the application is launched. $(Attr) substrings are replaced with data from the SMS database for the selected machine.

The following code examples show Arguments values. The context in these examples is an SMSMachine window focused on a machine named NAUTICA.

This example returns "/c NAUTICA":

/c $(Attr(MICROSOFT|IDENTIFICATION|1.0:Name))

This example returns "\\NAUTICA":

\\$(Attr(MICROSOFT|IDENTIFICATION|1.0:Name))

After environment variable expansion and SMS attribute processing, strings that have embedded spaces will be bracketed in double quotes ("") before being placed on the command line. If SMS cannot obtain an attribute, this is considered a launch error and SMS displays a message box describing the problem. Note that the error value is not used here because the failure can be noticed by the user and must be reported interactively.