EDIT: This and my next post will help with your post above.
I originally wrote this in response to your first post untill I read it again and realised it's not what you asked. I'll look into your first post tomorrow.
If you only want to output a list of these files then try this in cmd, but it will give you the full path to the file not just the filename.
dir /b /s /a:-d "C:\MyDirectory\*tag*" (output to screen)
or
dir /b /s /a:-d "C:\MyDirectory\*tag*" > results.txt (output to text file)
use dir /? for a explanation of the switches
results.txt will be in which ever folder your cmd prompt is in, eg your cmd prompt is C:\Windows\System32> then it will be found at C:\Windows\System32\results.txt. You can also specify a full path for the results.txt file.
If your only searching a single directory, not sub directories then drop the /s and you don't get the full path.
If this looks like it might work then have a play with the switches, although you might not be able to get exactly what you want.
Please let us know exactly what format you want the results returned.
? = Any char, eg. \tag?? will find tag12, tagak, tagml etc... But won't find atag12, MyTag, ThisTag123 etc...
* = Any number of any char, eg. \*tag* will find atag12, MyTag, ThisTag123, tag_me etc... \*.txt will find all text files, *.bmp will find all bitmap files, *tag*.txt will find all text files with the word tag in the filename etc...