Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Directory() problem
Message
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00609476
Message ID:
00609646
Views:
15
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform