Commands & Syntax > Commands > System >

www.MacroToolworks.com

Registry DELETE VALUE - < reg_deletevalue >() ... [Pro]

 

Registry DELETE VALUE
<reg_deletevalue>("Registry key","Value")
Available in: Professional edition

This command deletes defined registry value. There are these registry roots supported:
HKEY_CLASSES_ROOT
HKEY_CURRENT_CONFIG
HKEY_CURRENT_USER
HKEY_LOCAL_MACHINE
HKEY_USERS
HKEY_PERFORMANCE_DATA
HKEY_DYN_DATA

 

#

Parameter name

Parameter description

1

Registry key

Full path of registry key to be deleted. Example: HKEY_CURRENT_USER\Software\MyCompany\NewKey

2

Value

Name of the value. Example: ProductName.

 

Example (Macro Steps):

 

1

<#> <#> This command retrieves ProductName value

2

<#> <#> of 'HKEY_CURRENT_USER\Software\TestKey'

3

Macro execution: ONLY COMMANDS

4

Registry DELETE VALUE Registry key=HKEY_CURRENT_USER\Software\TestKey, Value=ProductName

Example (Plain Text):

 

<#> This command retrieves ProductName value

<#> of 'HKEY_CURRENT_USER\Software\TestKey'

<cmds>

<reg_deletevalue>("HKEY_CURRENT_USER\Software\TestKey","ProductName")