Skip to content

Reg_CreateKey

Creates the specified subkey in the registry. Missing parent keys in the path are created too. If the key already exists, the function returns TRUE and doesn’t change it.

Reg_CreateKey(sHandle, sKey) as Boolean

Registry hive, for example HKLM. For all accepted values, see Registry Functions.

Subkey to create

If bStatus Then bStatus = Reg_CreateKey("HKLM", "Software\KeyName")

Scripting Guidelines

Registry Functions Constants Package Property Variables