As the title says, how can I recursively copy a directory structure but only include some files. E.g given the following directory structure:
folder1
folde
I am fine with regular expressions, lazy and averse to installs, so I created a batch file that creates the directory and copies with vanilla DOS commands. Seems laborious but quicker for me than working out robocopy.
(.*) replace string "\1", and click replace all(.*) replace string md qqq\1\nxcopy \1 qqq\1\n and click replace all\\([^\\^"]+)"\n replace \\"\nA:\src and B:\dest). Turn OFF regular expressions, search qqq"A:\src\ replace B:\dest\ and click replace all.md will create nested directories. copy would probably behave identically to xcopy in this example. You might want to add /Y to xcopy to suppress overwrite confirms. You end up with a batch file like so:
md "B:\dest\a\b\c\"
xcopy "C:\src\a\b\c\e.xyz" "B:\dest\a\b\c\e.xyz"
repeated for every file in your original list. Tested on Win7.