My experience is that DIRECTORY() is not reliable in all circumstances. Instead:
DIMENSION aTest[1,5]
IF ADIR(aTest,'C:\Some\Directory','D') > 0
ELSE
ENDIF
>Use the DIRECTORY() function.
>-myron kirby-
>=============================
>>How could I check to see if a given directory exist before attempting to create a file there at runtime? (the directory name is stored in a configuration table and it will probably exist most of the times, but...).
>>
>>Thanx in advance.