Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .