How would you write this having only batch files and VBScript at your disposal in a Windows environment?
find -name '*.ext' -exec cp --parents {} destination/ \;
Or put it this way:
- Look recursively in the current folder for some filename pattern (ending with an extension called
ext
in the example above), - Copy each of these files to a destination folder (wherever that is) preserving directory tree structure (or creating any missing intermediate directories) as in current folder.