Reply to topic  [ 3 posts ] 
Comparing the content of 2 Hard Drives 
Author Message
Doesn't have much of a life
User avatar

Joined: Thu Apr 23, 2009 6:28 pm
Posts: 851
Location: EC1 Baby!
Reply with quote
As per the title really, is there any kind of utility (built into windows 2K or downloadable free) to look at the contents of two drives to see what files have/haven't copied over from one to another?

I ask because I'm currently copying (rather than moving) the contents of my 500GB storage volume to a new 1TB drive and windows occasionally is reporting file names to long to copy (!? - I do employ quite a silly-long filename system for my music) - which cuts short the copying as far as it got - but since the error doesn't report which file is ther problem I have no way of knowing which album the track didn't copy over to. :?

Any help would be most appreciated. ;)


Sat May 23, 2009 2:12 pm
Profile
I haven't seen my friends in so long
User avatar

Joined: Thu Apr 23, 2009 6:58 pm
Posts: 8767
Location: behind the sofa
Reply with quote
XCOPY C:\music\*.* Z:\music\ /L /E /D >filelist.txt

where C:\music is your source and Z:\music is the destination. For the whole drive, just do C:\*.*

that does not actually copy anything. It just makes a list of what would be copied if you hadn't put the /L

xcopy /? for more options

_________________
jonbwfc's law: "In any forum thread someone will, no matter what the subject, mention Firefly."

When you're feeling too silly for x404, youRwired.net


Last edited by JJW009 on Sun May 24, 2009 2:03 pm, edited 1 time in total.



Sat May 23, 2009 4:24 pm
Profile WWW
I haven't seen my friends in so long
User avatar

Joined: Thu Apr 23, 2009 7:35 pm
Posts: 6580
Location: Getting there
Reply with quote
Hmm...

If they are supposed to be exact like for like copies then you could use a batch file.

Something like...

Code:
for /r C:\ %%X in (*) do if not exist Z:\%%~pnxX echo %%X >> "C:\Files not copied.txt"


That will go through all of the files in you originating drive (C:) and look for the same file in the destination drive (Z:) and if it can't find the latter it will put the file name of the former into a text file called "Files not copied.txt" on your C drive.

I'm sure there are probably better ways with software etc... but that's the quickest way I can think of off the top of my head.

You can change the C:\ to be C:\music\ and it will search all files in that folder and subfolders.

Incidentally, the long files names are caused by having files in lots of subfolders and then renaming the higher up folders.

Only way round it is to find the files and then rename one of the parent directories until the entire file path is shorter than 255(?) characters.

_________________
Oliver Foggin - iPhone Dev

JJW009 wrote:
The count will go up until they stop counting. That's the way counting works.


Doodle Sub!
Game Of Life

Image Image


Sat May 23, 2009 9:21 pm
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 3 posts ] 

Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software.