The regIsVal function checks if the specified registry value exists on the local or a remote system.
The function has the following syntax:
regIsVal(sKey, sValName)
Specifies the registry key.
Specifies the name of the value.
The function returns a Boolean indicating presence of sValName:
Indicates that the value exists.
Indicates that the value does not exist.
Examples
Verify HKLM\SOFTWARE\ACME for a value, 'home':
if(regIsVal("HKLM\\SOFTWARE\\ACME", "home"))
{
? "Value was found"
}
else
{
? "Value does not exist"
}
|
Copyright © 2013 CA.
All rights reserved.
|
|