Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Does the directory exist?
Message
De
22/09/1999 14:32:54
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00267693
Message ID:
00267696
Vues:
22
>I'm having touble figuring out how to determine if a directory exists. I've tried FILE(fullpath) and FILE(fullpath\.) etc...
>
>Any easy way?
>
>TIA

You could use the
IF ADIR( laDir, "C:\TEMP\", "D" ) > 0
   =MESSAGEBOX( "Directory exists" )
 
ENDIF
Be sure to add the following slash. It seems to me though there is an easier way in VFP.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform