Quincy Center for Technical Education
Computer Technology Department

endlocal

Ends localization of environment changes in a batch file, restoring environment variables to their values before the matching setlocal command.

There is an implicit endlocal command at the end of the batch file.

endlocal

If command extensions are enabled (the default in Windows 2000), the endlocal command restores the enabled/disabled state of command extensions to what it was before the matching setlocal command was executed.