Try the following (note that there should not be a space between the VAR , = , and GREG ). SET VAR=GREG ECHO %VAR% PAUSE ...
stackoverflow.com