SETENV — Set an environment variable

Synopsis

SETENV [/?] name value

Options

/?
Display command syntax information.

Note

Note the differences from other command interpreters in how the 32-bit Command Interpreter handles environment variables.

Description

The SETENV command sets a new environment variable in the environment of the command interpreter process. SETENV defines (or redefines) the environment variable with the name name name to have the value value.

Note: Unlike the SET command SETENV can be used to create environment variables whose name contains an equals sign.

A child process of the command interpreter inherits the command interpreter's environment as it was at the time that the child process was started. Further modifications to the command interpreter's environment will not affect the environment of the child. Neither will modifications to the environment of the child process affect the environment of the command interpreter.

SET ESET UNSETENV CLEARENV PRINTENV DPATH PATH LIBPATH PROMPT INPUT


The 32-bit Command Interpreter is © Copyright Jonathan de Boyne Pollard. "Moral" rights are asserted.