Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

comparing subfoler

$
0
0
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)

Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>