|I think you are referring to the FOR /R command, as in|
for /r %%d in (.) do ...
which will indeed traverse the whole tree. To enumerate only the subfolders of the current directory, use this:
for /d %%d in (*) do ...
To enumerate all the files in these subfolders, use a nested for loop:
for /d %%d in (*) do (
for %%f in ("%%d\*") do (