Jump to content

comparing subfoler


Recommended Posts

hi friends
            i need to compare two folders . i need to check what are the missing files . for that i saw this coding in forum(shown below) . i used but its not comparing the sub folder .i need to list all the existing files and folders  .. how to do that .... help me please .....
 
#include <File.au3>
 
$path1 = "C:folder1"
$path2 = "F:Visio"
 
$aFile = _FileListToArray($path1, "*.*", 1)
 
Dim $Found
 
For $i = 1 To $aFile[0]
    $search = FileFindFirstFile($path2 & "" & $aFile[$i])
    If $search = -1 Then ContinueLoop
    
    While 1
        $file = FileFindNextFile($search)
        If @error Then ExitLoop
        $Found &= $file & @LF
    WEnd
Next
 
FileClose($search)
 
MsgBox(0, "Same files", $Found)
Edited by bhargavik
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...