Description: |
call:GetRegValues Key Data Type |
Script: |
1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12.
|
:GetRegValues Key Data Type -- returns all registry values of a given registry key
:: -- Key [in] - registry key
:: -- Stc [out] - struct of registry values
:$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="
for /f "tokens=1,2,* skip=4 delims= " %%A in ('reg query "%~1"') do (
for /f "tokens=*" %%X in ("%%A") do ( rem this removes the leading tab
set "%~2.%%X=%%C"
)
)
EXIT /b
|
|