Hi,

I don't want mirror the master dir in slave dir, but only check the difference (richard, the directories are different..).

I wrote this function and seems that the result are ok, what do you think about that?

$dirNameSlave = "C:\Temp\dirA"
$dirNameMaster = "C:\Temp\dirB"

dirCompare($dirNameMaster, $dirNameSlave)

Function dirCompare($masterPath, $slavePath)

$filesSlave = Dirplus($slavePath, '/s')
$lenSlavePath = len($slavePath)

For Each $file in $filesSlave

If Not (exist($masterPath + right($file, len($file) - $lenSlavePath)))
? "The path " + right($file, len($file) - $lenSlavePath - 1) + " doesen't exist in " + $masterPath
Endif

Next

EndFunction