4.1.8 Set Execution Environment (Start Information) dialog box
The Set Execution Environment dialog box appears when you select one or more icons in the Script Manager window and choose File, Set Execution Environment, All Items. It also appears when you click the Detail button in the Execution dialog box.
The Set Execution Environment dialog box has three tabs: Start Information, Terminate Information, and Trace Information. Click the Start Information tab to display the Set Execution Environment (Start Information) page.
- Note
-
If you attempt to set up the execution environment (start information) while the JP1/Script service is not running, a dialog box containing the following error message appears:
The operation could not be performed because the JP1/Script service is not running. Launch the JP1/Script service, and then re-execute the operation.
- Organization of this subsection
(1) Components
In the Set Execution Environment (Start Information) dialog box, you can set the following items for the script file(s) you selected.
- Script file name
-
Lists the name of the files (icons) that you selected in the Script Manager window. If you selected multiple icons, the file names are sorted in ascending order.
- Command line
-
Enter the run-time command line. You can specify a parameter, and whether to output a trace file and event log.
If you click the Set button, the Set Command Line dialog box appears. For details, see 6.2 Rules for writing command lines.
- Working folder
-
Enter the current drive or folder for script execution.
If you click the Select button, the Select Folder dialog box appears.
If you do not specify a folder, the folder containing the script file is selected.
- Start information
-
Specify the target space where the script is to be started automatically. If no day of week, day, or time is set, the script is started at the following time:
Logon: When the OS is logged on
Service: When the power is turned on
If the OS is not logged on, the script is not started even when the target is logged on and a day of week, day, or time has been set.
- Permit multi-activation
-
Select this check box to allow multiple copies of the same script to be executed concurrently.
There is no limit to the number of multiple executions; however, as the number of concurrent executions increases, the amount of required system resources also increases. You should pay attention to the number of scripts that are executed concurrently.
When multiple execution is enabled, traces are output to the folder specified in Trace file output folder in the Options (Multi-activation) dialog box, not the folder specified in the Set Execution Environment (Trace Information) dialog box. For further details, see 4.1.25 Options (Multi-activation) dialog box.
You cannot specify the trace file output folder for each script file. Therefore, if you specify Permit multi-activation for a script file, for each concurrent execution of that script, analysis trace files and execution trace files that have the same name are output to the same folder.
- Register into automatic start information
-
Starts the script automatically at the Script Launcher startup.
- Set the day of week#
-
Starts the script on a particular day of the week.
This check box is available only if you select Register into automatic start information.
- Day of week#
-
Specify a day of the week for weekly execution.
This box is available only if you select Set the day of week.
- Set the date#
-
Starts the script on a particular day of the month.
This check box is available only if you select Register into automatic start information.
- Day#
-
Specify a day of the month for monthly execution. The script will not start in a month that does not have the specified day.
This box is available only if you select Set the date.
- Set the time#
-
Starts the script at a particular time.
This check box is available only if you select Register into automatic start information.
- Time#
-
Specify the hour and minute for script execution. Enter a value between 00:00 and 23:59. If you specify a time earlier than the Script Launcher start time, the script will run the following day.
This box is available only if you select Set the time.
- #
-
This information takes effect only after the JP1/Script service or the Script Launcher is started.
(2) Operations
-
Set information about the execution environment as required.
-
Click OK to create the settings as an execution environment file.
-
Click Cancel to close the dialog box without creating an environment execution file.
(3) Processing
-
When you select multiple icons, items are set by default to the settings for the first file listed in Script file name. If you select one of the listed files, the environment settings for that file apply to all the files.
-
If you omit the day of the month and time settings, the script is executed when the JP1/Script service or the Script Launcher starts.
-
Any script file that is registered in automatic startup information and for which "Logon" is specified as the startup type will be executed in the logon space of the user who registered the automatic startup information.