ENDLOCAL

suggest change

Ends local set of environment variables started usingĀ SETLOCAL. Can be used to create subprograms: seeĀ functions.

Links:

$ endlocal /?
Ends localization of environment changes in a batch file.
Environment changes made after ENDLOCAL has been issued are
not local to the batch file; the previous settings are not
restored on termination of the batch file.

ENDLOCAL

If Command Extensions are enabled ENDLOCAL changes as follows:

If the corresponding SETLOCAL enable or disabled command extensions
using the new ENABLEEXTENSIONS or DISABLEEXTENSIONS options, then
after the ENDLOCAL, the enabled/disabled state of command extensions
will be restored to what it was prior to the matching SETLOCAL

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:


Built-in commands:
* ASSOC
* BREAK
* CALL
* CLS
* COLOR
* COPY
* DIR
* DATE
* ECHO
* ELSE
* ENDLOCAL
* EXIT
* FOR
* FTYPE
* GOTO
* IF
* MKLINK
* MOVE
* PATH
* PAUSE
* POPD
* PROMPT
* PUSHD
* REM
* SET
* SHIFT
* START
* TIME
* TITLE
* TYPE
* VER
* VERIFY
* VOL

Table Of Contents