:saveRegVars

save values of persistent variables into a file

Description: call:saveRegVars key
Dependencies: :getVarsByAttr, :SetRegValue
Script:
1.
2.
3.
4.
5.
6.
7.
8.
:saveRegVars key -- save values of persistent variables into a file
::               -- key [in]  - registry key used for storage
:$created 20060101 :$changed 20080219 :$categories Registry,Persistency
:$source https://www.dostips.com
SETLOCAL ENABLEDELAYEDEXPANSION
call:getVarsByAttr reg vars
for %%a in (%vars%) do call:SetRegValue "%~1" "%%a" "!%%a!"
EXIT /b