|
Action |
Deletes a subkey from the registry, including all the subkeys contained in the specified subkey.
|
Syntax |
DELTREE ("subkey")
|
Parameter |
Subkey
Specifies the subkey to be deleted from the registry.
|
Remarks |
When this function runs, no confirmation is asked nor warning given.
|
Returns |
|
0 |
Subkey deleted |
|
Error code |
Function failed |
|
Example |
$ReturnCode = DelTree("HKEY_CURRENT_USER\EZReg")
If $ReturnCode = 0
?
"Key deleted...."
Endif