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

Fixed DO file in with /a or /d

Discussion in 'Support' started by vefatica, Jun 15, 2015.

  1. vefatica

    Joined:
    May 20, 2008
    Messages:
    7,970
    Likes Received:
    30
    These both work in versions before V18.
    Code:
    v:\> do f in /a:-d * ( echo %f )
    Usage : DO [n | FOREVER]
    
    v:\> do f in /d"v:\" * ( echo %f )
    Usage : DO [n | FOREVER]
     
  2. thedave

    Joined:
    Nov 13, 2008
    Messages:
    253
    Likes Received:
    2
    Huh. It's not just you, I've got a script that stopped working, but I put it on Monday's list to research. Same basic syntax, removing "/a:-d" and adding a later check to skip over directories seems to have worked around it, I think.
     
  3. Steve

    Joined:
    Feb 28, 2011
    Messages:
    5
    Likes Received:
    0
    +1

    "do folder in /A:D *" results in "Usage : DO [n | FOREVER]"

    A lot of my scripts are hitting this as well. Like others have said, removing the /A:D fixes the error. I can change my scripts to do a attribute check inside the loop for now, like @thedave mentions.
     
  4. rconn

    rconn Administrator
    Staff Member

    Joined:
    May 14, 2008
    Messages:
    9,869
    Likes Received:
    83

Share This Page