windows cmd variables environment code example
Example 1: how to create env variable from cmd
set varname
set varname=value
set varname=
set
Example 2: set environment variable windows command line
setx EC2_CERT "%USERPROFILE%\aws\cert.pem"
set varname
set varname=value
set varname=
set
setx EC2_CERT "%USERPROFILE%\aws\cert.pem"