Hitachi

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


9.2.3 RegDelete (delete a value from the registry)

Purpose

Deletes a value from the registry.

Syntax
RegDelete(RegKey, SubKey, EntryName)
Arguments
RegKey

Specify the registry key as one of the following:

  • HKEY_CLASSES_ROOT

  • HKEY_CURRENT_USER

  • HKEY_LOCAL_MACHINE

  • HKEY_USERS

If you specify a registry key other than HKEY_CURRENT_USER, execute the script file as a user who has administrator permissions. For details, see 1.8.2 Command behavior.

SubKey

Specify the registry subkey as a character string or as a variable that stores this value.

EntryName

Specify the entry as a character string or as a variable that stores this value.

This value is optional. If you omit this value, a value without an entry name is assumed.

Description

The RegDelete command deletes a specified registry entry. The command returns True on successful execution, or False if an error occurs.

Example
RegDelete(HKEY_LOCAL_MACHINE   _
           ,"Software\Hitachi\Script", "CurrentVersion")
JP1/Script version

Supported from JP1/Script 01-00.