Windows 10: Removing duplicate files

  1.    22 Jan 2016 #1

    Removing duplicate files


    I don't trust free duplicate file finders. Is there a way to find and delete duplicate files easily from a folder in Windows 10 that does not require using another program?
      My ComputerSystem Spec

  2.    22 Jan 2016 #2

    Well, you could upload files and have their hash computed and do it that way, but that would be gloriously inefficient...
    MD5 File - HTML5 File Hash Online Calculator - MD5, SHA1, SHA2 (SHA-256), SHA-384, SHA-512

    Then you've got music file matching- and specialised programs - just an example where similar (not identical) files might be identified..

    Additional columns in explorer offer nothing useful in this regard.
      My ComputerSystem Spec

  3.    21 Oct 2016 #3

    If I May you could use ccleaner's duplicate finder i use it on my external drive (not C drive) just to weed out most of my junk (my C is only for programs and OS)
      My ComputerSystem Spec

  4.    21 Oct 2016 #4

    Hashing is a good idea since hash algorthims look at file data and not the meta data. Here is a powershell script I put together which should move all duplicates to a folder called "Duplicates" then you can just delete the folder.
    Code:
    path = "C:\Path\Root\Seach"
    $duplicates = "$path\Duplicates"
    
    
    New-Item $duplicates -ItemType Directory
    
    
    $files = Get-ChildItem -Path $path -File
    
    
    
    
    $fileHashes = @()
    
    
    foreach($file in $files)
    {
        $thisFileHash = Get-FileHash -Algorithm SHA256 -Path $file.FullName
    
    
        if ($fileHashes.Count -eq 0)
        {
            $fileHashes += @($thisFileHash.Hash)
        }
        else
        {
            $isDuplicate = $false
            foreach ($fileHash in $fileHashes)
            {
                if($fileHash -eq $thisFileHash.Hash)
                {
                    $isDuplicate = $true
                    break
                }
            }
            if($isDuplicate)
            {
                Move-Item -Path $file.FullName -Destination "$($duplicates)\$($file.Name)"
            }
            else
            {
                $fileHashes += @($thisFileHash.Hash)
            }
        }
    }
      My ComputerSystem Spec

  5.    24 Oct 2016 #5

    DuplicateFilesDeleter is a great deleter software.. Ic can delet all kind of file
      My ComputerSystem Spec


 

Related Threads
Duplicate files/folders in Software and Apps
I am after some software that will help me remove duplicate files. In this case, some program seems to have recreated duplicate folders with just a file called "desktop.ini" in it. I would like to be able to search for that and remove all the...
I wanted to have the OpenVPN-GUI open on boot so I may have caused two copies to appear in the Startup folder. In any case, it does not open on boot and I have to start it manually. On the other hand, there is only a disable function so I wanted to...
I use Google Drive instead of the product offered by Microsoft, because I am heavily invested in the Google universe already. The one annoyance of Google Drive is that it randomly generates duplicate files during the sync process. Instead of...
Two not to, sorry about that. I have two ASUS Computers. G73SW from Win7pro to Win10 Win10 program 1size 18.7gb 92,424 files. Old Win 27.2gb 117.322 files. G73JH from Win 8.1 to Win10 program size 16.9gb 104.641 files. Old Win 16.466gb...
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 05:45.
Find Us
Twitter Facebook Google+ Ten Forums iOS App Ten Forums Android App



Windows 10 Forums