Hi Albert,
You can set default folder as root:
=GETDIR("c:\d1\","text","caption",0,.T.)
MartinJ
>Hello everybody !
>
>Is there a way to limit the deepness of the subdirectory stucture in getdir() or getfile() commands with a parameter or something else ???
>
>Example:
>Directory structure of c:
>c:
>>d1
>>>d11
>>>>d111
>>>>>d1111
>>d2
>>>d22
>>>>d222
>>>>>d2222
>>d3
>>>d33
>>>>d333
>>>>>d3333
>
>I only want all subfolders and there subfolders from a given startdirectory.
>startdirectory = c deepnessparameter = 2
>
>c:
>>d1
>>>d11
>>d2
>>>d22
>>d3
>>>d33
>
>Any help welcomed
>
>Best regards
>Albert