Petros,
>Your solution is working but in the array adir there are two more directories the . and the ..
>There is way to NOT include these 2 directories ? (Not programmatically - but using the ADIR() function)
I don't think so. Just delete these two rows from the array. Just write a function that returns the ADIR() result without these two lines. You can use ASCAN() to find them and ADEL() to delete. Remember to redimension the array minus two rows afterwards.
Armin