You should be careful using this approach, as directories can have a period in them (e.g. "C:\Data.tmp\"). Also, this will pick up files that don't have an extension.
>Hi Petros,
>
>> =ADIR(DIRARRAY,M.MYPATH+'\*','D')
>>The problem is that I am getting the filenames also (not only the sub directories)
>
>Try this:
>
>
>=ADIR(aDirs, '\temp\*.', 'D')
>
>
>Armin