>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 ?
As Sergey pointed out the DIRECTORY() doesn't "see" hidden or system folders. The Windows Script Host, if available does, however. For example, my C:\Documents And Settings\gtasker\Recent folder is both hidden and system. Naturally, DIRECTORY() returns .F.. However,
oFSO = CREATEOBJECT("Scripting.FileSystemObject")
? oFSO.FolderExists("C:\Documents And Settings\gtasker\Recent")
returns .T.
George
Ubi caritas et amor, deus ibi est