<< Click to Display Table of Contents >> Navigation: 3. Script Language > Registry-commands > Registry Commands |
MiniRobotLanguage (MRL)
RDI. Command
Registry Delete Item
Intention
Delete Registry Items. Depending on parameters this can be a Registry Key or Value.
Registry Keys with Subkeys return an API-Error number on Stack.
Therefore this command is less sensitive to script errors compared to RDT., which would delete whatever it can get, in case the parameters are like that.
In case of success, the number 0 is been placed on stack, otherwise an API-Error is placed on stack.
For a list of API-Errors see API-Errors.
Syntax
RDI.P1[|P2]
Parameter Explanation
P1 - (in) Registry Key to delete
P2 - (in) Registry Entry-Name to remove
When P2 is given the P1 Parameter changes his function to:
(in) Registry Key from which the registry entry-name to remove
Example
'**********************************************
' REW./RDI. - Sample
'**********************************************
'DBM.2
PRT.===========================================
' First we write some Keys ...
: §§REG=HKEY_LOCAL_MACHINE\SOFTWARE\A_registry_test\Subkey03\A\B\C
REW.§§REG|MYTestItem|Test-Value
MBX.!
' Now we delete the Entry
: §§REG=HKEY_LOCAL_MACHINE\SOFTWARE\A_registry_test\Subkey03\A\B\C
RDI.§§REG|MYTestItem
' Now we delete the Key
: §§REG=HKEY_LOCAL_MACHINE\SOFTWARE\A_registry_test\Subkey03\A\B\C
RDI.§§REG
DMP.4
END.
Remarks
-
Limitations:
This command is currently limited to the x32-Registry.
See also:
• IER. / NER. - If-Exist-Registry