Iterate over a given list of files

for

  • Conditionally execute a command several times.
    More information: <https://learn.microsoft.com/windows-server/administration/windows-commands/for>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

for %{{variable}} in ({{file_a.ext file_b.ext file_c.ext}}) do ({{echo Loop is executed}})

click the source code to copy