The regSetVal function removes a value from the registry key specified by sKey on the local system or a remote system.
The function has the following syntax:
regDeleteVal(sKey, sValName)
Specifies the registry key.
Specifies the value.
If the function fails, it raises an exception. Otherwise, it returns true.
Examples
Delete value named "Label" from HKLM\Software\ACME with error handling:
try {
regDeleteVal("HKLM\\Software\\ACME", "Label");
? "Success"
}
catch(e) {
? "Failure:", e
}
Delete a value on remote machine client8:
regDeleteVal("client8::HKLM\\Software\\ACME", "Name");
|
Copyright © 2013 CA.
All rights reserved.
|
|