Results 1 to 13 of 13

Thread: [RESOLVED] Compare a directory and subs against another?

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2007
    Location
    Middletown, CT
    Posts
    948

    Resolved [RESOLVED] Compare a directory and subs against another?

    Hey there,
    The title of my post is a little misleading, though I'm not quite sure how to put it.
    I just found an old hard drive with a bunch of my music on it and want to make sure I have all of it. The folder/directory structure may have changed, and the root folder may have changed. (i.e. on the new drive, Library is the root folder title and on the old one MP3's is the old title). I'd like to be able to take each file, search the contents of the new drive, and ensure that the file exists, preferrably with a CRC-type check.

    I don't necessarily need a program written to do this, just didn't know if anyone knew of one of knew how to quickly code one. I'm even will to use a bat file if I have to...

  2. #2
    Next Of Kin baja_yu's Avatar
    Join Date
    Aug 2002
    Location
    /dev/root
    Posts
    5,989

    Re: Compare a directory and subs against another?


  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2007
    Location
    Middletown, CT
    Posts
    948

    Re: Compare a directory and subs against another?

    I'll check em out and let you know. Thanks

  4. #4

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2007
    Location
    Middletown, CT
    Posts
    948

    Re: Compare a directory and subs against another?

    So I took a look at those links, and it seems that they kind-of, sort-of do the job. I need a tool that confirms that all files are duplicates and makes it easy to find the ones that don't exist in another directory. These tools look for duplicates and notify me if they exist. That's great and it's definitely a good tool to have, but how do I know what files to copy over to the new music library? I suppose I may be being a little picky here, but surely someone else has had this need before...

  5. #5
    Next Of Kin baja_yu's Avatar
    Join Date
    Aug 2002
    Location
    /dev/root
    Posts
    5,989

    Re: Compare a directory and subs against another?

    You might be looking for a folder synchronizer then. What it does is it compares two folders, and synchronizes them to have identical data. Can copy new files from folder1 to folder2, copy changed files, delete files from folder2 that are not in folder1 etc.

    Here's a couple of those:

    http://allwaysync.com/
    http://en.wikipedia.org/wiki/SyncToy

    And a big list with even more of them: http://en.wikipedia.org/wiki/Compari...ation_software

    AlwaySync for example can also synchronize with a folder on an FTP.

  6. #6
    PowerPoster
    Join Date
    Nov 2002
    Location
    Manila
    Posts
    7,629

    Re: Compare a directory and subs against another?

    Might as well load the various directories to your player, then sort them there... you need to listen to them to verify if they are identical anyway, or to pick which version is not corrupt/better.

  7. #7
    Next Of Kin baja_yu's Avatar
    Join Date
    Aug 2002
    Location
    /dev/root
    Posts
    5,989

    Re: Compare a directory and subs against another?

    That's a very important subject leinad picked up on. There isn't an automated method to check if two songs are the same. Maybe you have two files of the same song, but at different bitrates, which results in different file sizes. An automated check wont be able to tell you that those two are the same song.

  8. #8

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2007
    Location
    Middletown, CT
    Posts
    948

    Re: Compare a directory and subs against another?

    What if that automated check compared CRC's?

  9. #9

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2007
    Location
    Middletown, CT
    Posts
    948

    Re: Compare a directory and subs against another?

    I really just want to know if I'm forgetting anything on the old drive before I ditch it. I don't need it to restructure anything, though I'd bet those things could be shut off. ultimately, I just need it to gather a list of filenames and CRC's, then compare with the new directory against filenames/crcs to ensure that all crc's in the old directory exist in the new. the new one will have more stuff, I just want to make sure everything is there. If it's not there, the file name will be required to tell me where to look to copy it.

  10. #10
    Next Of Kin baja_yu's Avatar
    Join Date
    Aug 2002
    Location
    /dev/root
    Posts
    5,989

    Re: Compare a directory and subs against another?

    If that's the case, why not copy everything, then search and remove duplicates?... if the space on the new hard drive permits it.

  11. #11

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2007
    Location
    Middletown, CT
    Posts
    948

    Re: Compare a directory and subs against another?

    That's a good idea. Duh.

  12. #12
    Next Of Kin baja_yu's Avatar
    Join Date
    Aug 2002
    Location
    /dev/root
    Posts
    5,989

    Re: [RESOLVED] Compare a directory and subs against another?

    Backups are a tricky thing. Every time I'm about to format and reinstall the OS, I think I re-check the partition at least ten times to make sure I don't miss anything and delete it.

  13. #13

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2007
    Location
    Middletown, CT
    Posts
    948

    Re: [RESOLVED] Compare a directory and subs against another?

    I usually just buy a new hard drive and put the old one in as a slave (or another SATA). That's the best way to go, IMHO.

Posting Permissions

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



Click Here to Expand Forum to Full Width