所以我是批处理脚本的新手,我想要一个这样的for循环:
@echo off
for /L %%i in (1,1,20) do (
set input_name=input%%i.txt
echo %input_name%
)
,输出为:
input20.txt
input20.txt
input20.txt
input20.txt
input20.txt
input20.txt
input20.txt
input20.txt
input20.txt
input20.txt
input20.txt
.
.
. (20 times)
为什么我总是得到迭代中的最后一个数字而不是1到20?