Without extensions FOR is not able to use the /F, /D, /R or any
switches for that matter. It can only do simple sets and/or wildcards
which regular DOS and the Win9x command.com can do, such as:
for %%a in (red blue green) echo The color %%a
for %%a in (*.txt win?.ini) do print %%a
With command extensions, the FOR command can count, (with the /L
switch), read from a file, etc. (with /F) and recurse subdirectories(
with /R), etc.
HTH
Clay Calvert
(e-mail address removed)
Replace "W" with "L"
The command extensions involve changes and/or additions to the following
commands:
DEL or ERASE
COLOR
CD or CHDIR
MD or MKDIR
PROMPT
PUSHD
POPD
SET
SETLOCAL
ENDLOCAL
IF
FOR
CALL
SHIFT
GOTO
START (also includes changes to external command invocation)
ASSOC
FTYPE
***************** To get specific details, type commandname /? to view the
specifics. ***********