Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Fullpath
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00354540
Message ID:
00354555
Vues:
12
>I want to locate a file in my drive, I used fullpath command but it is always

Fullpath() doesn't do any validation on the file name; it returns a path to what would be the file name (if it doesn't exist) it's most useful (?) for getting things like ?fullpath("..\Data")

If you want to locate a file; try

if file("MyFile.dbf")
? locfile("MyFile.dbf")
else
? "MyFile doesn't exist in the path"
endif

that will return the full path to the FIRST copy of MyFile.dbf it finds.
Cheers
-josh
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform