Finding duplicate files in VB.NET


Collecting...

  1. http://www.codeproject.com/Articles/28512/Duplicate-Files-Finder
  2. http://stackoverflow.com/questions/2558873/good-way-to-find-duplicate-files
  3. http://www.experts-exchange.com/Programming/Languages/.NET/Visual_Basic.NET/Q_28159098.html
  4. http://www.sentex.net/~mwandel/finddupe/
  5. http://www.codeproject.com/Articles/28316/Duplicate-File-Finder
  6. http://www.codeproject.com/Tips/391232/Find-Duplicate-Files-and-Delete-Them
  7. http://www.vbtutor.net/index.php/visual-basic-2015-tutorial/









Imports System.Collections.Generic Imports System.IO ... Dim files As New HashSet(Of String)(1000000) For Each filepath As String In Directory.GetFiles("C:\") If Not files.Add(Path.GetFileName(filepath)) Then ' Add returns True if the entry does not exist in the HashSet; False if it already does ' duplicate file name End If Next

Comments