Hitachi

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


B.2 Sample file that calls an executable file and checks for a program completion code

Organization of this subsection

(1) Summary of functions

This sample file calls an executable file and checks the exit code.

(2) File organization

ExitCode.SPT: Main script file of this sample file

ExitCode.EXE: Executable file that is called by ExitCode.Spt

(3) Executing the sample file

  1. Execute the sample file ExitCode.SPT.

    Specify either of the following values as a parameter:

    T: Execute the sample file in interactive mode.

    B: Execute the sample file in batch mode.

  2. If you execute the sample file in interactive mode, a window appears. Enter the exit code.

    If you enter a value other than 0 for the exit code, a user trace file named EXITCODE.TXT is output.

    If you execute the sample file in batch mode, the window does not appear and exit code 0 is assumed.

    If an error occurs, a message box opens and processing terminates.