Registry ENUMERATE SUBKEYS - < reg_enumsubkeys >() ... [Pro]
Registry ENUMERATE SUBKEYS <reg_enumsubkeys>("Registry key","Variable array for enumerated items","Variable array size") Available in: Professional edition
|
This command enumerates all subkeys of the given key. The result (array of subkeys names) is saved in variable. 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
|
Variable array for enumerated items
|
Variable (array) that receives subkeys found.
|
3
|
Variable array size
|
Variable that receives number of subkeys found.
|
|
|
Example (Macro Steps):
|
1
|
<#> <#> This example shows how to enumerate registry keys
|
2
|
<#> <#>
|
3
|
Macro execution: ONLY COMMANDS
|
4
|
Registry ENUMERATE SUBKEYS Registry key=HKEY_CURRENT_USER\Software, Variable array for enumerated items=vSubKey, Variable array size=vNumOfSubkeys
|
5
|
Message SHOW "" : "There are %vNumOfSubkeys% registry subkeys of 'HKEY_CURRENT_USER\Software' registry key. Showing first three: %vSubKey[0]% %vSubKey[1]% %vSubKey[2]% " (other parameters: x = -100, y = -100, Window title = Message, Buttons = OK, Timeout (seconds) = , Always on top = ).
|
|
Example (Plain Text):
<#> This example shows how to enumerate registry keys
<#>
<cmds>
<reg_enumsubkeys>("HKEY_CURRENT_USER\Software","vSubKey","vNumOfSubkeys")
<msg>(-100,-100,"There are %vNumOfSubkeys% registry subkeys of 'HKEY_CURRENT_USER\Software' registry key. Showing first three:
%vSubKey[0]%
%vSubKey[1]%
%vSubKey[2]%
","Message",1)