- Jun
- 789
- 7
I have a DO loop inside an IFF. A LEAVE inside the DO is exiting my btm. This seems to have only started happening in the last week or so. Here is the file Foo.btm:
Here is the output:
Code:
*setlocal
*unalias *
ver
do Filename in *
echo %Filename
leave
enddo
echo First loop done
iff isfile * then
do Filename in *
echo %Filename
leave
enddo
endiff
echo Second loop done
Code:
C:\Sys\Bat>Foo.btm
TCC 28.02.17 x64 Windows 10 [Version 10.0.19043.1348]
7z.bak
First loop done
7z.bak
C:\Sys\Bat>