change environment variables windows 10 command line code example Example: how to create env variable from cmd set varname set varname=value set varname= set