Usage:
/SETENV [name
[value]]
/SETENV name=value
With two arguments, /setenv will set the value of name to value in the environment. With one argument, /setenv will display the value of name. With no arguments, /setenv will display the value of all environment variables. If the second form is used, spaces around the '=' will not be stripped.
If name was already defined as an internal variable, it will become an environment variable.
When setting a variable, /setenv returns 1 if successful, 0 if not. When listing variables, /setenv returns the number of variables listed.
See: variables, /listvar, /set, /export