1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Fixed Slow FOR loop

Discussion in 'Support' started by Gilad Raz, Apr 3, 2013.

  1. Gilad Raz

    Joined:
    Jul 21, 2012
    Messages:
    32
    Likes Received:
    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
    )
     
  2. rconn

    rconn Administrator
    Staff Member

    Joined:
    May 14, 2008
    Messages:
    9,856
    Likes Received:
    83
    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.
     
  3. Gilad Raz

    Joined:
    Jul 21, 2012
    Messages:
    32
    Likes Received:
    0

Share This Page