SETLOCAL — Save a copy of the environment variables

Synopsis

SETLOCAL [/?]

Options

/?
Display command syntax information.

Description

The SETLOCAL command saves a copy of the current environment variables; unless a copy has already been saved, in which case the SETLOCAL command does nothing.

One copy of the environment variables may be saved for each nested batch file invocation. The saved copy will be restored, and then discarded, either when control returns from the batch file or when an ENDLOCAL command is executed.

ENDLOCAL


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