Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to check if a folder already exists?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00400144
Message ID:
00400561
Vues:
15
>Ed!
>
>I'm shocked that you neglected an opportunity to mention WSH ;-)
>
>oFSO = createobject('Scripting.FileSystemObject')
>? oFSO.FolderExists('c:\Moo\')

I'll speak up for Ed, here (even though he's already spoken for himself). If he's like me, I don't use the WSH when there are perfectly good, reliable VFP commands that'll do the job. So while I wouldn't use FolderExists (because of DIRECTORY()), I would use DriveExists or the IsReady property of the drive object.
George

Ubi caritas et amor, deus ibi est
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform