setting env variable in windows command line and runnig a program code example Example: how to create env variable from cmd set varname set varname=value set varname= set