FOR /D %%f IN (".\*") DO ECHO %%f
Exactly what I was looking for, thanks! I found, however, that at least on Windows 7 x64, I need to use only a single %, so:FOR /D %f IN (".\*") DO ECHO %f
You need to use two percentage signs (%%) if you are doing this in a batch file, otherwise one (%) works if you are doing it straight from a command line.
Post a Comment