how to set an environment variable in windows through terminal code example Example: how to create env variable from cmd set varname set varname=value set varname= set