Fixed Slow FOR loop

Jul 21, 2012
32
0
Not sure why, but the following executes very slowly in v15.00.27:

for %f in (*) (
echo %f
echo %f
echo %f
)

Unlike the following which executes in no time:

for %f in (*) (
echo %f
)
 

rconn

Administrator
Staff member
May 14, 2008
11,894
133
Because (1) you're not running the current build (15.00.30), and (2) you have "Duplicate CMD.EXE bugs enabled", and (3) you're probably using a non-default command separator (something other than &). Change any of those and it should work as expected.