trunolimit
01-13-2009, 11:40 PM
This problem is rather unique and I'll try my best to lay it all down.
I've got a laptop and a desktop. I have a music folder on my laptop witch is backed up regularly to a similar music folder on my desktop. The folder on my laptop is 130 gigs and 33,282 files large while the one on the desktop is 133 gigs and 31,572 files large. needless to say each folder has a ton of files that the other doesn't have. I want these folders to contain the same files with no repeats so just dumping one folder into the other is out (some files and sub folders are present in both but under different directories). I need a program that will compare these two folders and sift out the files that are not in both and put them in a third separate folder.
I was thinking maybe I could write a script that will get rid of all subfolders and put every folder under one parent directory that way I can just dump one folder into the other and let windows do its thing.
example
c:\music\rap\lupe fiasco\the cool\
the script would take the folder "the cool" and bring it up to the parent directory "music" so it would just be c:\music\the cool\
I'm not the greatest cmd script writer so if we have anyone with this talent on the forums I'd appreciate the help.
or maybe I can write a quick c# program that will do this.
I've got a laptop and a desktop. I have a music folder on my laptop witch is backed up regularly to a similar music folder on my desktop. The folder on my laptop is 130 gigs and 33,282 files large while the one on the desktop is 133 gigs and 31,572 files large. needless to say each folder has a ton of files that the other doesn't have. I want these folders to contain the same files with no repeats so just dumping one folder into the other is out (some files and sub folders are present in both but under different directories). I need a program that will compare these two folders and sift out the files that are not in both and put them in a third separate folder.
I was thinking maybe I could write a script that will get rid of all subfolders and put every folder under one parent directory that way I can just dump one folder into the other and let windows do its thing.
example
c:\music\rap\lupe fiasco\the cool\
the script would take the folder "the cool" and bring it up to the parent directory "music" so it would just be c:\music\the cool\
I'm not the greatest cmd script writer so if we have anyone with this talent on the forums I'd appreciate the help.
or maybe I can write a quick c# program that will do this.