I have a large folder directory (name it C: \ Main). I need to configure a script package to search for subfolders of this directory for a string inside a file name (and not text inside a file). I am having trouble finding an answer.
Essentially, let's say I need to find the string "abcd" in all the file names in C: \ Main \ *. I am only looking for matches that are XML files. Therefore, I need to find:
C: \ Main \ Secondary1 \ abcd_othertext.xml
C: \ Main \ Secondary2 \ abcd_othertext.xml
C: \ Main \ Secondary3 \ abcd_othertext.xml
among all hundreds of folders in this main directory. Then I need to output all matches (ideally, for individual variables in the bat file, but it could be another worm from worms). Thanks in advance for your help.
source
share