endlocal
- help endlocal
Output:
バッチ ファイルの環境変更のローカル化を終了します。
ENDLOCAL を実行した後で変更した環境設定はバッチ ファイル固有の設定で
はありません。
バッチ ファイルを終了しても前の設定は復元されません。
ENDLOCAL
コマンド拡張機能を有効にすると、ENDLOCAL は次のように変更されます:
対応する SETLOCAL が新しい ENABLEEXTENSIONS
または DISABLEEXTENSIONS オプションを使ってコマンド拡張機能を
有効または無効にしている場合は、
ENDLOCAL を実行した後、コマンド拡張機能の有効または無効の状態は対応
する SETLOCAL コマンドを実行する前の状態に復元されます。
Ends localization of environment changes in a batch file.
Environment changes made after ENDLOCAL has been issued are
not local to the batch file; the previous settings are not
restored on termination of the batch file.
ENDLOCAL
If Command Extensions are enabled ENDLOCAL changes as follows:
If the corresponding SETLOCAL enable or disabled command extensions
using the new ENABLEEXTENSIONS or DISABLEEXTENSIONS options, then
after the ENDLOCAL, the enabled/disabled state of command extensions
will be restored to what it was prior to the matching SETLOCAL
command execution.
Return Code: 1