Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 do this often and I've seen similar questions but not quite the same.

I want to copy from z:\foo to c:\bar all .cfm files and overwrite any conflicts. I also want to keep the directory structure intact, so copy folders. I may want to copy more than .cfm files, but I'm guessing whatever answers given could be easily changed for this. Thanks in advance.

Also if you could please give a brief description of a solution so I don't have to ask a nearly identical question in the future.

I'm on Windows 7 Enterprise edition and working with networked drives.

share|improve this question
Some combination of robocopy will definitely work for you here. – user3463 Jun 14 '12 at 21:30
up vote 0 down vote accepted

open command prompt (cmd) and use this command :

robocopy /is /e z:/foo c:/bar *.cfm
share|improve this answer

Your Answer


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.