Description: |
call:GetRegKeys Key Data Type |
Script: |
1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12.
|
:GetRegKeys Key Data Type -- returns all registry syb keys of a given registry key
:: -- Key [in] - registry key
:: -- Arr [out] - array of sub keys
:$created 20091123 :$changed 20091123 :$categories Registry, Array
:$source https://www.dostips.com
if "%~2" NEQ "" for /f "delims==" %%A in ('set %~2[ 2^>NUL') do set "%%A="
set /a %~2[#]=-1
for /f "tokens=*" %%A in ('reg query "%~1"^|findstr /b /c:"HKEY_"') do (
set /a %~2[#]+=1
call set %~2[%%%~2[#]%%]=%%A
)
EXIT /b
|
|