Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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?

share|improve this question

1 Answer 1

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.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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