>Thanks a lot for your answer
>
>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)
>
>Thanks again
>Petros
"." refers to the current directory, ".." refers to the parent directory. AFAIK, there are no further options to omit those. You have to check for ".". I believe it isn't safe to omit the first two entries - I believe that in some circumstances you will not have those entries.
Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)