PDA

View Full Version : Copying aborts when there is a bad file


eno-on
02-22-2006, 05:52 PM
I'm trying to move 80gb of recovered data to an external harddrive. Copying quits when it cant read on of the files (some are damaged.) How do I tell windows to keep copying and just skip the bad files?

nessus
02-22-2006, 10:20 PM
I'm trying to move 80gb of recovered data to an external harddrive. Copying quits when it cant read on of the files (some are damaged.) How do I tell windows to keep copying and just skip the bad files?

Get a copy of robocopy from here (http://www.microsoft.com/downloads/details.aspx?familyid=9d467a69-57ff-4ae7-96ee-b18c4790cffd&displaylang=en) at Microsoft.

Use something like the following syntax in a command prompt:

robocopy /e <source_folder> <target_folder> /r:1 /w:0

Robocopy is REALLY aggressive about trying to copy files. The /r:1 switch tells it to retry each copy only once (default is 1,000,000 times!) and the /w:0 to wait 0 seconds between retries (default is 30 seconds). When it hits a bad file, it will retry once, just in case, and then move on to the next file.

The /e tells it to copy all subdirectories, even empty ones. If you want to copy file system security as well, add the /sec switch.

djnes
02-22-2006, 11:46 PM
Another vote for Robocopy. I'm always amazed that's free.

eno-on
02-23-2006, 10:35 AM
Thanks for the link.
But it begs the question... Why would MS make copying files abort when one hits a bad file? Why not just skip it? Thats the dumbest thing ever. Linux doesnt stop copying, it just says "this file is borked, i'm gonna skip it."
Seriously, how does having a bad file mean "Well, I guess he probably doesn't want to copy the rest of it over since he had a bad file.. I'lll stop now".

Volred
02-23-2006, 12:26 PM
Thanks for the link.
But it begs the question... Why would MS make copying files abort when one hits a bad file? Why not just skip it? Thats the dumbest thing ever. Linux doesnt stop copying, it just says "this file is borked, i'm gonna skip it."
Seriously, how does having a bad file mean "Well, I guess he probably doesn't want to copy the rest of it over since he had a bad file.. I'lll stop now".LOL

I was transferring large amounts of data 2 weeks ago to my new hard drive, and I ran into this problem twice.

I did not know about robocopy. So I had to rar the whole drive together. Then extract it on the new hard drive. :( Wish I knew earlier

eno-on
02-23-2006, 12:34 PM
LOL

I was transferring large amounts of data 2 weeks ago to my new hard drive, and I ran into this problem twice.

I did not know about robocopy. So I had to rar the whole drive together. Then extract it on the new hard drive. :( Wish I knew earlier

Exactly. I've done the rar thing for smaller jobs, but NO WAY am I going to sit through a rar and unrar of 80gb of shit.

Javelin3o4
02-24-2006, 02:12 AM
i use a program called total commander

http://www.ghisler.com/

flynlr
02-24-2006, 02:18 AM
robocopy does the trick

but Im still not over the loss of Xtree Gold. :(

eno-on
02-24-2006, 10:15 AM
Again, though, WHY do we need these tools? Why can't we tell windows how we want it to handle copying files? That's just ridiculous.

corrosive23
02-24-2006, 04:00 PM
Again, though, WHY do we need these tools? Why can't we tell windows how we want it to handle copying files? That's just ridiculous.
you can, you just need to know how to tell it that. If you do it from the command prompt you can tell it to continue even if you have errors. Just use xcopy and use the /c switch

Met-AL
02-25-2006, 11:40 PM
I've always used XXXCopy, but I will check this robocopy out.