Can't echo environment variables

batch-file

Solution

The variable will apply to new processes - launch a new cmd.exe and "echo %test%", observe the expected output. (Tested on Windows 7)

Problem

Can't seem to figure out where i'm going wrong here. I'm writing a script where I need to store a value for the next time in runs. From the command line I try the following ``` setx -m test tesing SUCCESS: Specified value was saved echo %test% ``` returns ``` %test% ``` I have also tried this without -m and I can see the variables in the list in windows. What am I missing here?

Original source