Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Directory() problem
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00609476
Message ID:
00609646
Vues:
13
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform