[Toc][Index]

ENDLOCAL - Restore the saved environment

 
 Purpose:    Restore the saved disk drive, directory, environment, alias 
             list, and special characters. 
             
 Format:     ENDLOCAL 
 
 See also:  SETLOCAL. 
 Usage 
 The SETLOCAL command in a batch file saves the current disk drive, 
 default directory, all environment variables, the alias list, and the 
 command separator, escape character, parameter character, decimal 
 separator, and thousands separator.  ENDLOCAL restores everything that 
 was saved by the previous SETLOCAL command. 
 For example, this batch file fragment saves everything, removes all 
 aliases so that user aliases will not affect batch file commands, changes 
 the disk and directory, changes the command separator, runs a program, 
 and then restores the original values: 

 
         setlocal
         unalias *
         cdd d:\test
         setdos /c˜
         program ˜ echo Done!
         endlocal
 
 
 SETLOCAL and ENDLOCAL can only be used in batch files, not in aliases or 
 from the command line. 

Created using Inf-PHP v.2 (c) 2003 Yuri Prokushev
Created using Inf-HTML v.0.9b (c) 1995 Peter Childs