Results 1 to 11 of 11
  1. #1
    New Lounger
    Join Date
    Apr 2008
    Location
    United Kingdom
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Comparing copies of image files (XP SP3)

    I have a 160 GB external HDD where I have stored my video and image files. This is now full and I have a new 1TB HDD that I am going to use. Copying the files from the small to the large HDD is no problem but how can I quickly check that the copied files are OK before I delete the files from the small HDD that I want to use for ordinary data storage and backups? Is there file compare software that will do this rather like that in Backup software?

  2. #2
    Plutonium Lounger
    Join Date
    Oct 2001
    Location
    Lexington, Kentucky, USA
    Posts
    12,107
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Comparing copies of image files (XP SP3)

    If you don't mind using the command prompt and XCOPY, you should be able to verify the integrity of the destination files - see attached. There are Loungers who are big fans of ROBOCOPY but I've never used that one. I don't know how long a "copy job" of this size is gonna take!
    Attached Images Attached Images

  3. #3
    Plutonium Lounger Leif's Avatar
    Join Date
    Dec 2000
    Location
    U.K.
    Posts
    14,010
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Comparing copies of image files (XP SP3)

    This very long and protracted thread leads be to suspect that the /v switch does not in fact check the integrity of the copied file, but - if anything - only the file size.

  4. #4
    Super Moderator BATcher's Avatar
    Join Date
    Feb 2008
    Location
    A cultural area in SW England
    Posts
    3,421
    Thanks
    33
    Thanked 195 Times in 175 Posts

    Re: Comparing copies of image files (XP SP3)

    If you are familiar with the Command Prompt window, you can do a file comparison (FC)<pre>Compares two files or sets of files and displays the differences between
    them

    FC [/A] [/C] [/L] [/LBn] [/N] [/OFF[LINE]] ]<!/t> </u> [/W] [/nnnn]
    [drive1:][path1]filename1 [drive2:][path2]filename2
    FC /B [drive1:][path1]filename1 [drive2:][path2]filename2

    /A Displays only first and last lines for each set of differences.
    /B Performs a binary comparison.
    /C Disregards the case of letters.
    /L Compares files as ASCII text.
    /LBn Sets the maximum consecutive mismatches to the specified
    number of lines.
    /N Displays the line numbers on an ASCII comparison.
    /OFF[LINE] Do not skip files with offline attribute set.
    /T Does not expand tabs to spaces.
    /U Compare files as UNICODE text files.
    /W Compresses white space (tabs and spaces) for comparison.
    /nnnn Specifies the number of consecutive lines that must match
    after a mismatch.
    [drive1:][path1]filename1
    Specifies the first file or set of files to compare.
    [drive2:][path2]filename2
    Specifies the second file or set of files to compare.</pre>

    I suspect you would want the second option, a binary file comparison.

    It may be a bit of a pig to obtain all the filenames or filepaths, but, as (almost) always, a BATch file is your friend!
    BATcher

    Time prevents everything happening all at once...

  5. #5
    Super Moderator BATcher's Avatar
    Join Date
    Feb 2008
    Location
    A cultural area in SW England
    Posts
    3,421
    Thanks
    33
    Thanked 195 Times in 175 Posts

    Re: Comparing copies of image files (XP SP3)

    And, as Big Al says, some people (including me) swear by RoboCopy - I use it to back up chunks of our two servers to the 'spare' partitions of about a dozen PCs overnight, and for other things. It's pretty good at checking itself.

    Usual sort of format is:
    ROBOCOPY "from-dir-path" "to-dir-path" *.* /copyall /s /np /r:0 /w:0

    There's a lot about the plethora of options here.

    As far as I am aware you (still) have to download and install the 11.8 MB of the Windows Server 2003 Resource Kit Tools just to get the ROBOCOPY exe, chm and doc files... (Yes, this is the XP010 version which works on both XP and WS2003).
    BATcher

    Time prevents everything happening all at once...

  6. #6
    New Lounger
    Join Date
    Apr 2008
    Location
    United Kingdom
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Comparing copies of image files (XP SP3)

    Thanks for these suggestions. Before I go off trying these command line methods I had a thought. Could I use Backup with verify option and then the restore the backed up files to the new HDD? I realise that any method is going to take a while since there are hundreds of files but this could be the simplest way (for me anyway).

  7. #7
    Super Moderator BATcher's Avatar
    Join Date
    Feb 2008
    Location
    A cultural area in SW England
    Posts
    3,421
    Thanks
    33
    Thanked 195 Times in 175 Posts

    Re: Comparing copies of image files (XP SP3)

    When you are using backup (presumably NTbackup?), the verify option simply checks that what you have written to the backup device matches the content of the files on the original disk. It doesn't make any check on what the data actually is (a corrupt file will be copied exactly).

    Another program you can try is the GUI SyncToy v2.0 - although this is a lot of trouble for a one-off copy, since it's intended to mirror (sets of) directories between two devices on a regular basis.
    BATcher

    Time prevents everything happening all at once...

  8. #8
    New Lounger
    Join Date
    Apr 2008
    Location
    United Kingdom
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Comparing copies of image files (XP SP3)

    BATcher. Yes I accept that veryify confirms only accurate copying of original file without checking curruption but surely so will the other methods. Not being too confident with all these command line methods I have now copied the files using the NTBackup and restore method. It took a couple of hours but I just left it. After randomly checking several copied files things look OK but I still cannot yet bring myself to delete the files from the small HDD.

    Thanks everyone for your ideas.

  9. #9
    Plutonium Lounger
    Join Date
    Oct 2001
    Location
    Lexington, Kentucky, USA
    Posts
    12,107
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Comparing copies of image files (XP SP3)

    I was planning to maybe make yet another suggestion, but I ought to let YOU look at what I saw instead, because there are lots of binary file comparison programs out there. Some are free and others are not, so you could read up and see if anything looks like it might apply, now that you've already made the copy. I did a Google search for: binary file compare and got a number of hits.

  10. #10
    Platinum Lounger
    Join Date
    Nov 2001
    Location
    Melbourne, Victoria, Australia
    Posts
    5,016
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Comparing copies of image files (XP SP3)

    I believe there's also a GUI for Robocopy. You can download RoboCopy GUI here.

    Alan

  11. #11
    New Lounger
    Join Date
    Apr 2008
    Location
    United Kingdom
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Comparing copies of image files (XP SP3)

    I see what you mean and yes there are plenty of choices. I have a duplicate file finder utility in jv16 Power Tools (from Macecraft) that I used to compare the two sets of files after the backup/restore routine. I set it to find image files with identical content and it found them all and reported no differences. Should I believe this?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •