>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
Warning: When I test on the root directory, I do not get those two entries.
Also, I am not sure whether all OS work the same here.
Therefore, automatically deleting the first two entries seems dangerous to me. Better to check for left(dirname,1) = "." - no decent filename will start with a dot.
Grüsse, 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)