Verifies that a registry key value exists in the registry or INI file. This command can take two or three parameters. The first parameter is the registry key path and the second parameter is the value name. The first two parameters are required and are string values. The third parameter indicates whether to look on the source computer or destination computer. The third parameter is optional and a Boolean value. If the third parameter is True, the interpreter looks on the source computer for the specified key. If the parameter is False or omitted, the interpreter looks on the destination computer.
Note: The third Boolean parameter can only be used during General and Apply functions. The third Boolean parameter will cause a syntax error or runtime error if used otherwise.
The Key path (string value)
The Value name (sting value)
The machine (Boolean value)
ValueExists( <Key path>, <Value name>, [Boolean] );
if (ValueExists( "HKCU\\Control Panel\\Desktop", "Smooth Scrolling", SOURCE)) ApplyValue( "HKCU\\Control Panel\\Desktop", "Smooth Scrolling");
|
Copyright © 2013 CA.
All rights reserved.
|
|