关于批处理的问题?下面给出一段,高手们能不能帮忙解释一下。

来源:百度知道 编辑:UC知道 时间:2024/06/15 21:16:01
rem Get remaining unshifted command line arguments and save them in the
set CMD_LINE_ARGS=
:setArgs
if ""%1""=="""" goto doneSetArgs
set CMD_LINE_ARGS=%CMD_LINE_ARGS% %1
shift
goto setArgs
:doneSetArgs

rem Get remaining unshifted command line arguments and save them in the 这一句是注释
set CMD_LINE_ARGS= 设CMD_LINE_ARGS等于空值
:setArgs 标签
if ""%1""=="""" goto doneSetArgs 如果%1参数等于空值,跳到doneSetArgs
set CMD_LINE_ARGS=%CMD_LINE_ARGS% %1 将参数组成一行,接在后面

shift 这个是参数转换的命令
goto setArgs 跳到setArgs
:doneSetArgs 设置doneSetArgs标签