Tuesday, April 30, 2013

Recursively List File Name in DOS/Windows

for /r %i in (*) do @echo %~ni >> list.txt

If you end up wanting the extensions, change %~ni to %~nxi

To use in a batch file, change all the % to %%

No comments:

Post a Comment