RegistryDelete
PowerScript function
Description
Deletes a key or a value for a key in the Windows system
registry.
Syntax
|
1 |
RegistryDelete ( key, valuename ) |
|
Argument |
Description |
|---|---|
|
key |
A string whose value is the key in the system registry you To uniquely identify a key, specify the list of parent |
|
valuename |
A string containing the name of a value in the registry. |
Return value
Integer. Returns 1 if it succeeds and -1 if an error occurs.
Usage
For more information about entries in the system registry, see RegistrySet.
Examples
This statement deletes the value name Title and its associated value
from the registry. The key is not deleted:
|
1 2 3 |
RegistryDelete( & "HKEY_LOCAL_MACHINESoftwareMyApp.SettingsFonts", & "Title") |
See also