Batch delete duplicates and create hardlinks

May 30, 2011 at 00:20:21
Specs: Windows 7, 2.6Ghz Intel Dual-Core, 2Gb RAM
Hi everyone,

I have two main folders with multiple sub-folders and within those it can have many sub-levels in each main folder. Within each folder there are different files, mostly with .exe and .dll extension. Some of those are duplicates and this is what I want to do:
- search the first folder and compare it with the second
- if duplicates are found, remove them from the second folder and add a hardlink as a replacement with reference to the duplicated file.

I hope I've explained it right. Thank you for your assistance.


See More: Batch delete duplicates and create hardlinks

Report •

#1
May 30, 2011 at 00:29:12
Do you verify for true duplicates or only duplicate names?

Report •

#2
May 30, 2011 at 00:56:32
I need to verify for true duplicates because some files may have the same name but different size.

Report •

#3
May 30, 2011 at 01:48:57
Files can also have different hashes, Some files may have hard coded references. The amount of disk space saved is negligible.

Report •

Related Solutions

#4
May 30, 2011 at 02:52:32
So you're saying it's useless?
The two folders are different versions of the same software, yet they share some similar files. I only compared one files's checksum and it matched. I'll need to see when I get home if others match as well. Not sure.
Even if it saves 50MB it will still help me because I'm going to add them to a dvd disc and should be as small as possible.

Report •

Ask Question