Indeed SET TEST_VARIABLE=value works for current process only, so SETX
is required. A quick example for permanently storing an environment variable at user level.
SETX TEST_VARIABLE etc
. Not applied yet (echo %TEST_VARIABLE%
shows %TEST_VARIABLE%
,echo %TEST_VARIABLE%
shows etc
.etc
.