Ends localization of environment variables in a batch file. Each setlocal command must have an endlocal command to restore environment variables.
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 rem in Notepad. setlocal path=g:\programs\superapp;%path% call superapp > c:\superapp.out endlocal start notepad c:\superapp.out