|I wrote a batch file to call loop.bat which would go through all the subfolder to look for a specific text file (e.g. phys_*.txt). This is what I have for the for loop .bat file:|
for /r %%f in ("*") do call loop.bat %%f
It run, but went through all the files instead of stopping at the folder to look for the file (e.g., c:\phys\234\gen.txt) I would like to have it go into the 234 folder to look for that gen.txt file not go into the gen.txt to look for the file. Hope I'm making sense. Thank you.