iterating over multiple types of files?
Posted: 13 Oct 2014 01:31
In a DOS batch script I want to iterate over MULTIPLE (!) types of files.
Therefore I coded:
for /R "D:\work\data" %%a in (*.TXT *.LOG *.DAT) do (
....)
However only *.TXT files are found and processed.
Why not the *.log and *.dat files?
Peter
Therefore I coded:
for /R "D:\work\data" %%a in (*.TXT *.LOG *.DAT) do (
....)
However only *.TXT files are found and processed.
Why not the *.log and *.dat files?
Peter