I am trying to copy files from a corrupted hard drive. Not all of them will copy - some have CRC errors and will stall. I would like to skip those files and continue with the rest of the copy - but the copy process stops until I click one of the options in the error window. Is there a way for me to copy everything, tell the OS to suppress that prompt and just not copy the corrupted files?

This is on Windows 7.

up vote 12 down vote accepted

The fastest way would likely to be to use xcopy through a Command Prompt instance, in a context similar to:


The /C flag forces xcopy to ignore any issues with copying; the /E flag orders xcopy to copy folders (even empty ones), and the /Q flag makes it a quiet operation (otherwise, you'll get an entry for each thing copied).

An example would be:

xcopy d:\*.* c:\recovery /C /E /Q
  • why not cp ?? – Vineet Menon Apr 25 '12 at 7:37
  • 2
    @VineetMenon Assuming that you mean the copy command, that's because it doesn't have the "continue in spite of errors" nature that the questioner is asking for. If you mean the Linux command cp, that's because the question is related to Windows 7. – Rilgon Arcsinh Apr 25 '12 at 7:39
  • ooh...I meant cp as in Windows, didn't knew about non-error ignoring capabilities!! :( thx – Vineet Menon Apr 25 '12 at 8:43
 robocopy.exe with /r:0 /w:0 

for a first pass, then increase to /r:1

In the past, I've used TeraCopy. Another option would be a block-level copy--for example, using dd or a disk cloning utility. Personally, I would boot from a live Linux CD and use dd_rescue/ddrescue if the data is important.

The xcopy option will fail with an "Insufficient space" error. See this link for example:


I tried xcopy first as the user suggested but then I used robocopy which is included in Windows 7 and this one succeeded:

robocopy source destination /E

The /E is to recursively with empty directories.


Maybe some simple Powershell snippet?

copy-item -path E:\myfolders -destination C:\newfolder -container -force -recurse -erroraction continue -warningaction continue -confirm:$false

In order to run, open Powershell console (available in every Windows since XP), change -path and -directory parameters to your start and destination folder, copy the command to PS window and press enter. If you can't copy, enable quick edit mode in console properties - this maps paste option under right-mouse button in Win7.

Might require closing paths in quotation marks '' if there are special signs in names, like whitespace.

This run in Powershell should copy all files and subirectories to specified directory. Will continue copying despite some error with specified file. For every broken file that command can't copy, you will receive a lot of red output in console. If you don't want to see these, change erroraction to silentlycontinue.

I came across "Roadkil's Unstoppable Copier". It has as graphic interface and was designed specially for those cases.

Your Answer


By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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