Name

for

Synopsis

Loop construct.

for [/D] %var% in (filelist) do command

Loop over a list of files. The specified variable is set to each successive item in the file list each time it goes through the loop.

/D says to match directory names in filelist only.

for /L %var% in (m,j,n) do command

Loop from m to n by j, using the specified variable as the loop index.

Get Windows 2000 Commands Pocket Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.