Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Directory() problem
Message
De
24/01/2002 10:59:25
Jonathan Cochran
Alion Science and Technology
Maryland, États-Unis
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00609476
Message ID:
00609773
Vues:
10
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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform