Quantcast
Channel: Take Command / TCC
Viewing all articles
Browse latest Browse all 1725

LEAVE quits btm

$
0
0
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:
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
Here is the output:
Code:
C:\Sys\Bat>Foo.btm

TCC  28.02.17 x64   Windows 10 [Version 10.0.19043.1348]
7z.bak
First loop...

Read more

Viewing all articles
Browse latest Browse all 1725

Trending Articles