Hitachi

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


9.7.1 MakeGroup (create a program group)

Purpose

Creates a program group.

Syntax
MakeGroup(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 MakeGroup command creates a specified program group. The command returns True on successful execution, or False if an error occurs.

If the specified program group already exists, the command returns True without doing anything.

Example
' Create the program group "Alphabet" on Windows 7
' and enter the shortcut "ABC" in that group.
If  _OS_ = "WIN_NT6.1"  Then
    MakeGroup("Alphabet")
    MakeShortcut(Cur_Program, "Alphabet\ABC", _
    _BIN_+"ABC.SPT")
End If
JP1/Script version

Supported from JP1/Script 05-20.