Runs a command for each file in a set of files.
for %variable in (set) do command [options]
for %%variable in (set) do command [options]
The first format is for use on the command line, the second
is for use in batch files.
%variable or %%variable
A name for the parameter that will be replaced with each file name.
The set of files.
Wildcards * and ? may be used.
The command to run for each file.
These options are passed to the command.
Displays all the text files in the current directory, one after another:
for %f in (*.txt) more %f
Copyright © 2003 Rob Platt
This file forms part of The FreeDOS HTML Help Documentation, and is covered
under its terms: see index.htm