endlocal
Ends localization of environment changes in a batch file, and restores environment variables to their values before the corresponding setlocal command was run. Windows commands reference
On Windows
Windows
endlocal@echo offsetlocalpath=g:\programs\superapp;%path%call superapp>c:\superapp.outendlocalstart notepad c:\superapp.out
/?Displays help at the command prompt.