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.3 Effect of the executing user on 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" ' and create the shortcut "ABC" in that group. MakeGroup("Alphabet") MakeShortcut(Cur_Program, "Alphabet\ABC", _BIN_+"ABC.SPT")
- JP1/Script version
-
Supported from JP1/Script 05-20.