批处理 for的格式

@echo off
set /A i=1
:loop
if  "%i%"=="14"  (
goto end
)

copy /Y data%i%.in data.in
echo data.in
type data.in
stu
copy /Y data.out data%i%.out
echo data%i%.out
type data%i%.out
comp /A /L data%i%.out ata%i%.out
set /A i=%i%+1
goto loop
:end
pause

猜你喜欢

转载自blog.csdn.net/hefenghhhh/article/details/6386373