命令行大全

endlocal

舞夕之 发表于 2020-06-23 13:56浏览次数:

Endlocal命令用于停止setlocal命令启用的环境更改的本地化。

查看英文版

目录:

1 endlocal 运行系统环境

2 endlocal 语法

3 endlocal 示例

endlocal 运行系统环境

Windows xp

Windows vista

Windows 2000

Windows 7

Windows 8

Windows 10

Windows NT

endlocal 语法

结束批处理文件中环境更改的本地化。发出ENDLOCAL后所做的环境更改不是批处理文件的本地更改;批处理文件终止时不会还原以前的设置。

ENDLOCAL

如果启用了命令扩展,则ENDLOCAL更改如下:

如果相应的SETLOCAL使用新的enable extensions或DISABLEEXTENSIONS选项启用或禁用命令扩展,那么在ENDLOCAL之后,命令扩展的启用/禁用状态将恢复到匹配的SETLOCAL命令执行之前的状态。

Ends localization of environment changes in a batch file. Environment changes made after ENDLOCAL is 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 disable 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 they were before the matching SETLOCAL command execution.

查看英文版

查看中文版

endlocal 示例

ENDLOCAL

停止由setlocal命令启用的环境更改的本地化。

ENDLOCAL

Stops the localization of the environment changes enabled by the setlocal command.

查看英文版

查看中文版