I am trying to figure out the best way to find all the files listed in specific directories. This is my issue:
In Directory1 there are a bunch of directories like SubDir1, SubDir2, SubDir3, etc... I need to find all the .txt files in the sub directories while being in Directory1 with one command all at once. I am assuming it would be some kind of wildcard operator that would do the trick but I have also been known to be wrong in the past...
EDIT:
Knowing that:
dir \*.txt /s
would access all of the files, what would be the best way to copy all of them to a folder called "test" the same way?
Thank you!
dir c:\directory1\*.txt /s?