You can actually define one by issuing set your_var=some_value
in a cmd window. If you want to get the value you have to issue %your_var%
.
The same works with modifying environment variables like path. To expand it you can for example do something like this set path=%path%;some_dir
.
But keep in mind that such modifications just stay for your current cmd session/window.