I have two folders say A and B having exactly same no .of files with same name but different modified date and size. I want to compare each file of A to its respective file of folder B and get the newly modified file in a List box. If newly modified file belongs to folder A then it will come to ListBox1 and if its belongs to Folder B, then comes to listbox2. I have started the code but m struck..!! can anyone of you help me?
Dim PathA As String= "" 'path for folder A
Dim PathB As String= "" 'path for folder B
Dim Diir1 As New System.Io.DirectoryInfo(PathA)
Dim Diir2 As New System.Io.DirectoryInfo(PathB)
Dim List1 = Dir1.GetFiles(.,System.IO.SearchOption.AllDirectories)
Dim List2 = Dir2.GetFiles(.,System.IO.SearchOption.AllDirectories)
Dim myFileCompare As New fileCompare
Dim areIdentical As Boolean = List1.sequence Equals (List2,myFileCompare)
What to do now???