Skip to content

Reg_SetString

Sets the value of a registry variable of type string (REG_SZ). If the key doesn’t exist, it’s created.

Reg_SetString(sHandle, sKey, sVariable, sValue) as Boolean

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

Subkey path

Name of variable to contain the value

Value

If bStatus Then bStatus = Reg_SetString("HKLM", "Software\KeyName", "ValueName", "Value")

Scripting Guidelines

Registry Functions Constants Package Property Variables