C:\WINDOWS>HELP ENDLOCALEnds localization of environment changes in a batch file.Environment changes made after ENDLOCAL has been issued arenot local to the batch file; the previous settings are notrestored on termination of the batch file.

ENDLOCAL

If Command Extensions are enabled ENDLOCAL changes as follows:

If the corresponding SETLOCAL enable or disabled command extensionsusing the new ENABLEEXTENSIONS or DISABLEEXTENSIONS options, thenafter the ENDLOCAL, the enabled/disabled state of command extensionswill be restored to what it was prior to the matching SETLOCALcommand execution.