To set an environment variable(permanent):
setx var_name value
To set an environment variable(till the command prompt open i.e., temporary):
set var_name=value
NOTE: To view the variable set using above command just use echo %var_name%
To view all the environment variables:
set
To view a particular environment variable value:
set var_name
To delete a environment variable set:
set "var_name="
setx var_name value
To set an environment variable(till the command prompt open i.e., temporary):
set var_name=value
NOTE: To view the variable set using above command just use echo %var_name%
To view all the environment variables:
set
To view a particular environment variable value:
set var_name
To delete a environment variable set:
set "var_name="