Uploaded image for project: 'Core ReactOS'
  1. Core ReactOS
  2. CORE-5806

cmd shell has incomplete documentation of 'for' loop

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • 0.4.8
    • Shell
    • None
    • Operating System: ReactOS
      Platform: x86 Hardware

    Description

      FOR switch %variable IN ('command') do %variable

      where switch is one of
      /D for directories
      /F ["options"] for files where options (which I am going to ignore becauase they are not very useful)
      /R [[drive:]path] for recursive directory tree walking. takes what's in perens and appends it to directory paths. defaults to current directory. nothing in perens causes no output & lots of cpu time (I think you can eliminate this).

      it should also be documented that (at least with for loops), in batch files, %variable should be changed to %%variable. note that in XP this does not seem to work with string manipulation.

      Attachments

        Activity

          People

            hbelusca hbelusca
            jmichae3 Jim Michaels
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: