我想知道在调用标签时如何在批处理脚本中调用9个以上的参数.例如,以下显示我分配了12个参数,并尝试回显所有这些参数.
CALL:LABEL "one" "two" "three" "four" "five" "six" "seven" "eight" "nine" "ten" "eleven" "twelve"
PAUSE
GOTO:EOF
:LABEL
echo %1
echo %2
echo %3
echo %4
echo %5
echo %6
echo %7
echo %8
echo %9
echo %10
echo %11
echo %12
Run Code Online (Sandbox Code Playgroud)
%10%11和%12的输出最终为one0 one1 one2.我尝试过使用大括号,括号,引号,数字周围的单引号而没有任何运气.