Hitachi

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


9.1 List of special commands

Special commands are provided for advanced script operations, including registry and service operations.

Table 9-1 lists the special commands that you can use when creating a script. The numbers in parentheses in the Command column indicate the product version in which the command is supported. Commands without a following number are supported from version 01-00.

Take extra care when handling non-public product information with commands for registry and service operations.

Table 9‒1: List of special commands

Category

Command

Description

Registry operations

RegRead

Reads a value from the registry.

RegWrite

Enters a value in the registry.

RegDelete

Deletes a value from the registry.

RegDeleteKey

Deletes a registry subkey.

Graphics display

BitmapShow (05-00)

Draws a bitmap.

BitmapHide (05-00)

Erases a bitmap.

Evaluations

IsEmptyReg

Checks whether a registry subkey is empty and returns True or False.

IsExistRegKey

Checks whether a registry subkey exists and returns True or False.

IsExistService

Checks whether a service exists and returns True or False.

IsEmptyGroup (05-20)

Checks whether shortcuts exist in a program group and returns True or False.

Service operations

ServiceSetValue#

Sets a service information object for service operation.

ServiceGetValue

Gets values stored in a service information object.

ServiceCreate

Registers a service.

ServiceDelete

Deletes a service.

ServiceStart

Starts a registered service.

ServiceStop

Stops a registered service.

ServicePause

Halts an active service.

ServiceContinue

Resumes a halted service.

ServiceChange

Changes a setting for a service.

ServiceQuery

Gets the information set for an active service.

ServiceRefer

Gets the current status of a service.

ServiceControl

Sends a control command to a service.

GetServiceName (05-10)

Gets the service name from the display name of a service.

External program calls

CallDll

Calls DLL file(s). Multiple parameters may be specified.

Shortcuts

MakeGroup (05-20)

Creates a program group.

DeleteGroup (05-20)

Deletes a program group.

MakeShortcut (05-20)

Creates a shortcut.

DeleteShortcut (05-20)

Deletes a shortcut.

Process monitoring

GetProcessCount (05-20)

Gets the number of activations of a specified process and the process IDs.

GetProcessInfo (05-20)

Gets process information for a specified process ID.

TerminateProcess (05-20)

Forcibly terminates a process specified by process ID.

Other

ExitWindows (05-10)

Terminates script execution and logs off or shuts down Windows.

SetRetryMode (10-00)

Sets the lock error retry function.

ResetRetryMode (10-00)

Cancels the lock error retry function.

SetTrialOpenMode (10-00)

Sets the trial-open function.

ResetTrialOpenMode (10-00)

Cancels the trial-open function.

#

Before using commands for service operations, use the ServiceSetValue command to specify the necessary service information.