:obje7
set gn=%random%
if /i %gn% lss 1 goto obje%go%
if /i %gn% gtr 5 goto obje%go%
set goal%gn%="test"
echo hi > goal%go%.txt
echo hi > g2.txt
goto go
在目标%random_number%中设置测试,对吗?
(
echo %goal1%
echo %goal2%
echo %goal3%
echo %goal4%
echo %goal5%
) >> mcbingo.txt
我得到的结果是:
ECHO is off.
test
ECHO is off.
test
test
和所有:objeX是相同的代码,但是更改了X,g2.txt例如是g1.txt。
任何人都知道什么是错的?