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
iterating over multiple types of files?
Moderator: DosItHelp
-
- Posts: 246
- Joined: 04 Mar 2014 11:14
- Location: germany
Re: iterating over multiple types of files?
are there log and dat files in it?
Phil
Phil
Re: iterating over multiple types of files?
pstein wrote: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?
Just agreeing that it works fine.
If the filetypes are there then the error is in how you are processing them, or they are locked.