|
Action |
Lists the names of the registry entries contained in a specific key or subkey.
|
Syntax |
ENUMVALUE ("subkey", index)
|
Parameters |
Subkey
Specifies the key or subkey for which you want to enumerate the value entries.
Index
A numeric value representing the position of the entry whose name you want to discover. Zero (0) represents the first entry in the subkey.
|
Returns |
|
0 |
Function returns a string representing the entry in the specified key or subkey |
|
Error code |
Function failed |
|
259 |
Entry does not exist |
|
Example |
$Index = 0
:Loop1
$ValueName = ENUMVALUE("HKEY_CURRENT_USER\Console\Configuration",
$Index)
If @ERROR = 0
? "Name found: $ValueName"
$Index
= $Index + 1
goto
Loop1
Endif