I’ve come upon this so far:
for /r . %%g in (*.xml) do echo %%g
But I’m having a little trouble figuring out how to specify a path for it to search. For instance, I need to see all the XML files in Z:\abc\def\ directory and all sub-directories.
Thanks in advance for looking at this!
My goodness… you were 99% there.
The dot after the /R option represents the current directory. Simply substitute the specific path you want.
If all you are trying to do is list the files on the screen, then you can use the DIR command: