|
Begins localization of environment variables in a batch file. Localization
lasts until a matching endlocal command is encountered, or the end of
the batch file is reached setlocal option Parameter option When command extensions are enabled (the default in Windows 2000),
the setlocal batch command accepts an optional argument, which can be
either enableextensions or disableextensions. This enables or
disables the command extensions until the matching endlocal command,
regardless of their setting prior to the setlocal command. The setlocal command also sets the errorlevel value when it
is passed an argument. The errorlevel value is set to zero (0) if one
of the two valid arguments is given and set to one (1) otherwise. |