set environment variable cmd windows 10 code example
Example 1: how to create env variable from cmd
set varname
set varname=value
set varname=
set
Example 2: how to change environment variables in windows 10
Open the Start Search, type in “env”, and choose “Edit the system environment variables”: