Skip to content

Reg\_SetInteger

Set the value of a registry variable of type integer

Reg_SetInteger(sHandle, sKey, sVariable, iValue) as Boolean

sHandle (String)

HKEY-handle

sKey (String)

Subkey path

sVariable (String)

Name of variable to contain the value

iValue (Integer/Long)

Value of the type Integer or Long

VBScript

If bStatus Then bStatus = Reg_SetInteger("HKLM", "Software\KeyName", "ValueName", 5)

Scripting Guidelines

Registry Functions