Thx for your support Mart and Richard.

The last solution by Richard is what i seek.


I would like to list the folders side-by-side because :

I have 2 folders.
The first with 500 files in *.mov and the other with 500 same files but in *.mp4
And all files with *.mp4 have bad date modification attribute. (lost during conversion)

So, my idea was to list the first file in directory 1, get the date modification attribute of this file, and list the first file in directory 2, and apply the date attribute of first file in directory 1 and loop....

It's the reason this code seems to be good, but i don't know why, (Sorry' I'm newbieeee \:\) ) there is an error message : "array reference out of bounds --> "Redim Preserve $asDir1[$iMostFiles]"

 Code:
 
Code:
Break ON

$sDir1="D:\KiX\1"
$sDir2="D:\KiX\2"

$asDir1=DirList($sDir1)
$asDir2=DirList($sDir2)

$iMostFiles=IIf(UBound($asDir1)>UBound($asDir2),UBound($asDir1),UBound($asDir2))

Redim Preserve $asDir1[$iMostFiles]
Redim Preserve $asDir2[$iMostFiles]

$sDir1+"  <->  "+$sDir2+@CRLF+@CRLF

For $i=0 To $iMostFiles
	$asDir1[$i]+"  <-> "+$asDir2[$i]+@CRLF
Next



Edited by Arbracam (2010-07-23 10:30 PM)