这是我想知道的代码,如果我可以设置多次循环
@echo off
:IDK
color a
:loop
echo derp
color 1a
echo derp
color 2a
echo derp
color 3a
echo derp
color 4a
echo derp
color 5a
echo derp
color 6a
echo derp
color 7a
echo derp
color 8a
echo derp
goto loop
答案 0 :(得分:0)
您可以使用FOR /L
循环执行此操作:
SET NumberOfTimes=10
FOR /L %%A IN (1,1,%NumberOfTimes%) DO (
REM Enter code to repeat here.
)