If you want to see if it exists regardless of the attributes, you could try this:
LPARAMETERS tc_Folder
ll_FolderExists = .F.
ln_NumFiles = ADIR( la_Files, tc_Folder, "DHS" )
IF ln_NumFiles = 1
IF "D" $ la_Files[ 1, 5 ]
ll_FolderExists = .T.
ENDIF
ENDIF
RETURN ll_FolderExists
>Thanks - I should read the documentation !!
>
>>>I have a situation where, for certain users, DIRECTORY("c:\temp") AND DIRECTORY("c:\temp\") return .F. where there is definitely a c:\temp on the machine. This occurs in both VFP6 & VFP7.
>>>
>>>The machines are running NT4 and Novel Client 4.8 on a Novell Network.
>>>
>>>Directory() only produces an incorrect result for c:\temp.
>>>
>>>Any ideas ?
>>
>>Check if 'C:\temp' directory has system or hidden attribute set.