Hitachi

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


9.7.2 DeleteGroup (delete a program group)

Purpose

Deletes a program group.

Syntax
DeleteGroup(GroupName [, RootType])
Arguments
GroupName

Specify the program group name as a character string or as a variable that stores this value.

If you specify Lcl_Program, execute the script file as a user who has administrator permissions. For details, see 1.8.2 Command behavior.

RootType

Specify the program group type with one of the values shown in the following table:

Value

Meaning

Lcl_Program

Program (common program group)

Cur_Program

Program (user-specific program group)

This value is optional. If you omit this value, Cur_Program is assumed.

Description

The DeleteGroup command deletes a specified program group. The command returns True on successful execution, or False if an error occurs.

If there is no such program group, the command returns True without doing anything.

Example
' Delete the program group "Alphabet" on Windows 7
If  _OS_ = "WIN_NT6.1"  Then
    DeleteGroup("Alphabet")
End If
JP1/Script version

Supported from JP1/Script 05-20.