If Command Extensions are enabled, the following additional forms of the FOR command are supported: FOR /D %variable IN (set) ...

If Command Extensions are enabled, the following additional  forms of the FOR command are supported:    FOR /D %%variable IN (set) DO command [command-parameters]        If set contains wildcards, then specifies to match against directory      names instead of file names.    FOR /R [[drive:]path] %%variable IN (set) DO command [command-parameters]        Walks the directory tree rooted at [drive:]path, executing the FOR      statement in each directory of the tree.  If no directory      specification is specified after /R then the current directory is      assumed.  If set is just a single period (.) character then it      will just enumerate the directory tree.    FOR /L %%variable IN (start,step,end) DO command [command-parameters]        The set is a sequence of numbers from start to end, by step amount.      So (1,1,5) would generate the sequence 1 2 3 4 5 and (5,-1,1) would      generate the sequence (5 4 3 2 1)    FOR /F ["options"] %%variable IN (file-set) DO command [command-parameters]  FOR /F ["options"] %%variable IN ("string") DO command [command-parameters]  FOR /F ["options"] %%variable IN ('command') DO command [command-parameters]        or, if usebackq option present:    FOR /F ["options"] %%variable IN (file-set) DO command [command-parameters]  FOR /F ["options"] %%variable IN ('string') DO command [command-parameters]  FOR /F ["options"] %%variable IN (`command`) DO command [command-parameters]        filenameset is one or more file names.  Each file is opened, read      and processed before going on to the next file in filenameset.      Processing consists of reading in the file, breaking it up into      individual lines of text and then parsing each line into zero or      more tokens.  The body of the for loop is then called with the      variable value(s) set to the found token string(s).  By default, /F      passes the first blank separated token from each line of each file.      Blank lines are skipped.  You can override the default parsing      behavior by specifying the optional "options" parameter.  This      is a quoted string which contains one or more keywords to specify      different parsing options.  The keywords are:
English
English (United States)
日本語
Japanese