Skip to content

Reg\_SetString

Set the value of a registry variable of type string

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

sHandle (String)

HKEY-handle

sKey (String)

Subkey path

sVariable (String)

Name of variable to contain the value

sValue (String)

Value

VBScript

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

Scripting Guidelines

Registry Functions