My dad wanted to clear some disk space on his computer and found that there were some duplicate folders at random locations occuping unnecesary disk space.
Since there were too many files and they were distributed randomly, he didn't want to manually check them one by one.
He also wanted to have control over the files to be deleted because he didn't want the program to simple delete them without running them by him.
So I wrote a simple program to quickly group the files which were the same and also show me all of them as options for me to choose before it removed them.
This is a single-screen app which looks as follows:
DuplicateFileManager can be downloaded from here:
https://github.com/shreeharshas/DuplicateFilesRemover/releases/tag/v0.2-beta
This app is simple and self explanatory, verbose explanation as below:
--> Select the folder to scan
--> Click refresh to scan the folder
--> Wait till the blank section fills up with the files list or any message
--> Double click on the file names to preview in Windows explorer
--> Click Select Duplicate files button to select all files but the first in every section
--> Click Delete Selected Files button to remove the files
The main logic behind this is to generate hashcodes based on the file contents and comparing them which is essentially a comparision of the files themselves.
Files with the same hashcodes are grouped under the header having the hashcode value itself as its text.
I have currently used md5 hashing scheme to check for same-ness.
Manual tests executed successfully on my machine with following specs:
OS - Microsoft Windows 10
Development framework - Microsoft Dotnet framework version 4.0
- The files are not moved to the recycle bin so make sure you double-check the files before deleting.
- This is a beta version and is to be used at your own risk.
- Relatively bigger files such as videos may take longer time to be processed.
Use this app at your own risk - I do not guarantee anything and do not want to be legally bound whatsoever if it results in any kind of damage to your machine.
Visit
bug
Visit
enhancement
Visit
help wanted