I am trying to search all subdirectories in a folder C:\Stage, for a set of files.
File names differ based on the source they come form, for example, load1.csv, load 14.csv, load 21.csv.
So I need to look for files based on load*.csv, import*.csv, etc.
I got the below for QLemo, but need to modify the hardcoded file names to wldcard ones.
set reqfiles=load1.csv load2.csv load3.csv
for /D %%D in (C:\Stage) do (
cd /D %%D
for /F %%C in ('dir %reqfiles" /b ^| find /c /v ""') do if %%C equ %numfile% echo %%D is ok