for (items)
Loops over a list.
Syntax
for %%i in (items) do command
Description
%%i (two percent signs) is used in script files, %i is used on the command line. for /l is for numeric ranges, for /f is for file lines.
Example
Loading editor…
This language is for reference/learning only — copy the code and try it in your own environment.
Expected output
1 2 3
When to use?
Processing files/items.