how to set environment variable from command prompt in windows code example Example: how to create env variable from cmd set varname set varname=value set varname= set