First post, by Kahenraz
- Rank
- l33t
In NT I can use this to loop over a directory to get all files and folders into %f:
FOR /D %f IN (".\*") DO ECHO %f
However, DOS 7.1 does not have the /D switch and will only return files. Do I have to write "DIR /B" to a file and then read that back into FOR or is there an easier way?