Conditionally perform a command several times. syntax-FOR-Files FOR %% parameter IN (set) DO command syntax-FOR-Files-Rooted at Path FOR /R ...
ss64.com