|
ENDLOCAL
Ends localization of environment changes in a batch file,
restoring environment variables to their values before the
matching setlocal command.
Syntax
ENDLOCAL
There is an implicit ENDLOCAL command at the end of a batch
file.
Ending the cmd.exe session will delete all Environment
Variables created with the SET command.
Examples
You can localize environment variables in a batch file. For
example:
@echo off
setlocal
path=g:\programs\myapp;%path%
call myapp>c:\myapp.out
endlocal
start notepad c:\myapp.out
Cmd Commands
|