Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Directory() Function
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00628144
Message ID:
00628168
Vues:
16
>When I use the DIRECTORY() function to check the existence of a DIRECTORY (so I'll know whether or not to create it), the results are not dependable. Any documentation on errors with this function? If not, what else can I use to check the existence of a directory?


You could use WSH with something like this:
lparameters tFolder
local oFSO
oFSO = CreateObject("Scripting.FileSystemObject")
return oFSO.FolderExists(tFolder)
HTH


Alex Feldstein, MCP, Microsoft MVP
VFP Tips: English - Spanish
Website - Blog - Photo Gallery


"Once again, we come to the Holiday Season, a deeply religious time that each of us observes, in his own way, by going to the mall of his choice." -- Dave Barry
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform