#91 Iterating through directories and files inside these directories

set myDir="D:\lib"
for /d %%B in (%myDir%\*) do (
@for %%C in ("%%B\*.dat") do echo %%C)
pause

Discover more from Tips and Hints for Aerospace Engineers

Subscribe now to keep reading and get access to the full archive.

Continue reading