@echo off
set allparam=
:param
set str=%1
if "%str%"=="" (
goto end
)
set allparam=%allparam% %str%
shift /0
goto param
:end
if "%allparam%"=="" (
goto eof
)
给批处理脚本传递参数
最新推荐文章于 2022-12-02 10:57:15 发布
@echo off
set allparam=
:param
set str=%1
if "%str%"=="" (
goto end
)
set allparam=%allparam% %str%
shift /0
goto param
:end
if "%allparam%"=="" (
goto eof
)