:savePersistentVars

save values of persistent variables into a file

Description: call:savePersistentVars filename
Dependencies: :getVarsByAttr
Script:
1.
2.
3.
4.
5.
6.
7.
8.
9.
:savePersistentVars filename -- save values of persistent variables into a file
::                           -- filename [in]  - file name used for storage
:$created 20060101 :$changed 20080219 :$categories Persistency
:$source https://www.dostips.com
SETLOCAL ENABLEDELAYEDEXPANSION
type nul>"%~1"
call:getVarsByAttr persist vars
for %%a in (%vars%) do (echo.SET %%a=!%%a!>>"%~1")
EXIT /b