Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Check for a file
Message
 
À
06/10/1998 06:49:37
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00144148
Message ID:
00144149
Vues:
26
Hi John,

>I am trying to verify if a file is present on the disk. I have tried FILE() but it also checks along the path and returns true if it finds the file anywhere. If I have a full file name how can I verify that it is present on the disk?

If you pass the full path and name to FILE() it should not look anywhere else. Alternatively you can use ADIR():
LOCAL laFile[1]
IF ADIR(laFile,"MyFile") > 0
   * File does exist
ENDIF
Christof
--
Christof
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform