Hitachi

JP1 Version 13 JP1/Script Description and Reference (For Windows Systems)


6.2.2 Command line parameters

Organization of this subsection

(1) Parameters

Parameters specified in command lines are stored in location variables %n (where n is a positive integer) that are handled by script files. %0 is the script file name (full path), and %1 is the first position parameter (where %n is the nth parameter).

If specifying multiple parameters, follow the rules for writing command lines. For details, see 6.2.3 Command line coding conventions.

The folder name Program Files (x86) used in the following examples includes a blank.

Example 1:

Command line written in the Set Execution Environment dialog box

Command line format in the dialog box:
ABC 123 "C:\Program Files (x86)\"
Values assigned to the location variables:
%0:script-file-name
%1:ABC
%2:123
%3:C:\Program Files (x86)\
Example 2:

Script file called by specifying parameters in the Exec or NetExec command

Command line format:
Exec ("C:\Temp\Test.SPT",True,"ABC","123","""C:\Program Files (x86)\""")
Values assigned to the location variables:
%0:C:\Temp\Test.SPT
%1:ABC
%2:123
%3:C:\Program Files (x86)\
Example 3:

Command line written in executable form (SPTXE.EXE) in a user program

Specification in the user program:
SPTXE.EXE C:\Temp\Test.SPT ABC 123 "C:\Program Files (x86)\"
Values assigned to the location variables:
%0:C:\Temp\Test.SPT
%1:ABC
%2:123
%3:C:\Program Files (x86)\

(2) /SPALV(n) (or /spalv(n))

Use this parameter to specify whether to output an analysis trace file. A trace file is output by default when this parameter is omitted. For n, specify 0 or a greater integer. The default is a nonzero value.

Example:

Specify as follows to suppress output of an analysis trace file.

SPTXE.EXE  C:\Temp\Test.SPT  ABC  123  "C:\Program Files (x86)\" /SPALV(0)

The valid range of values for the specified parameter consists of the script to be executed, and any script that is called by the CallSpt command in the script to be executed.

(3) /SPXLV(n) (or /spxlv(n))

Use this parameter to indicate whether to output an execution trace file and to specify the output level. When this parameter is omitted, only error results are output to the trace file. For n, specify an integer from 0 to 3. The default is 1. If you specify 2 or 3, execution performance of script files will be degraded because the amount of output information will increase.

Example:

Specify as follows to output the command start and end times to the execution trace file.

SPTXE.EXE C:\Temp\Test.SPT  ABC  123  "C:\Program Files (x86)\" /SPXLV(3)

The valid range of values for the specified parameter consists of the script to be executed, and any script that is called by the CallSpt command in the script to be executed.

(4) /NOEVLOG (or /noevlog)

Specify this when you do not want to output event logs other than error logs. The following event logs will be output regardless of this parameter setting:

If you omit this parameter, all event logs are output. For details about the types of event logs, see 6.1.13 JP1/Script event logs.

/NOEVLOG (or /noevlog)

Do not output any event ID logs other than error logs.

/NOEVLOG(n,n,...) (or /noevlog(n,n,...))

Do not output any event ID logs specified with n other than error logs.

When specifying multiple event IDs, separate them with commas (in no particular order).

Example:

Specify as follows to suppress log output for event ID 1 (information log at the beginning of script execution).

SPTXE.EXE C:\Temp\Test.SPT  ABC  123  "C:\Program Files (x86)\" /NOEVLOG(1)

The valid range of values for the specified parameter consists of the script to be executed, and any script that is called by the CallSpt command in the script to be executed.

Further, registry settings must be configured to suppress logs with an event ID of 8 (information log at the beginning and end of the JP1/Script service, Script Launcher service, and Script Launcher execution) from being output. For details, see 6.2.4 Notes on writing command lines.

(5) /SPT:GRM (or /spt:grm)

Specify this to check script file syntax.

For details, see 6.2.5 Command line syntax check.