# endlocal

Ends localization of environment variables in a batch file. Each setlocal command must have an endlocal command to restore environment variables.

```endlocal
```

## Example

You can localize environment variables in a batch file.

```@echo off
rem This program starts the superapp batch program on the network,
rem directs the output to a file, and displays the file