Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to determine if a folder exists?
Message
 
À
14/02/2004 11:14:39
Mike Sue-Ping
Cambridge, Ontario, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00877389
Message ID:
00877457
Vues:
12
>I'm using VFP8. How can I determine if a folder already exists? I can't seem to find a built in function.
>
>TIA
>
Mike,

Since you're using VFP 8 which is supported on Win2K and above, I'd suggest
oFSO = CREATEOBJECT('Scripting.FileSystemObject')
IF oFSO.FolderExists("c:\foldername") THEN
  * Code here
ENDIF
George

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

Click here to load this message in the networking platform