Thursday, March 14, 2019

windows 7 - copying files with certain extension and overwriting



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.


Answer



open command prompt (cmd) and use this command :



robocopy /is /e z:/foo c:/bar *.cfm

No comments:

Post a Comment

hard drive - Leaving bad sectors in unformatted partition?

Laptop was acting really weird, and copy and seek times were really slow, so I decided to scan the hard drive surface. I have a couple hundr...