Sign in to follow this  
Followers 0
bhargavik

comparing subfoler

4 posts in this topic

#1 ·  Posted (edited)

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

Share this post


Link to post
Share on other sites



its showing error in opening the file 

#include<fileoperations.au3>

Share this post


Link to post
Share on other sites

Au3Check.exe does false operation

Likely it is necessary to add the old version

You can temporarily disable Au3Check.exe. See the last >post

Share this post


Link to post
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
Sign in to follow this  
Followers 0