Command Prompt for Windows

Command SET


Display, set or remove environment variables.


SET [variable=[chars]]
variableEnvironment variable name.
charsA series of characters to assign to the variable.


Type SET with no parameters to display a list of all environment variables.

When parameter chars is not specified then the environment variable will be removed from the environment space,

Also see command XSET, LET and Batch Files.