Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Finding a Directory
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00608110
Message ID:
00608118
Vues:
20
>Hi,
>
>I'm looking for an easy way to determine if a directory exits using VFP6. It's very easy to determine if a file exists, but I can't figure out how to determine if a directory exists. Thank you!
>
>Tim

A quick and ugly way is to use:
ON ERROR do nodirectory()
CD C:\MYDIRECTORY

FUNCTION nodirectory
	messagebox("This directory does not exist.")
ENDFUNC
And if the directory doesn't exist, you trap the error.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform