I would like to write a batch file to search for files with a particular pattern in sub-directories and copy them to a particular directory. It seems easy in Linux but how can I do that in Windows?

link|improve this question

80% accept rate
feedback

1 Answer

I may suggest how to do it with Far File Manager:

Navigate to target folder, press Alt+F7, enter filemask and pattern you're searching for, then (in results window) click Panel button, then (on the search panel) select all files with Gray+ and copy them with F5 to another Panel.

If you still insist on automation, using Powershell would be a better approach.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.