Executes a command for each file in a set of files.
for %%variable in (set) do command [command-parameters]
| Parameters | |
|---|---|
| | |
| Parameter | Purpose |
| | |
| %%variable | Specifies a parameter that the for command replaces with each text string in the specified set until all files have been processed. |
| (set) | Specifies files or text strings to process. |
| command Specifies the command to be executed in each file in the set. | |
| [command-parameters] | Provides parameters to be used by the specified command. |