Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to know if a directory exists ?
Message
De
30/10/2008 17:23:03
 
 
À
28/10/2008 13:59:09
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Divers
Thread ID:
01357782
Message ID:
01358504
Vues:
23
>how to know if a directory exist ?
>and how to creat it if not exist ?
You could simply try to create the directory and trap for the error
lcDir = "mypath"
TRY
   mkdir lcDir
CATCH TO loError
  ** Directory exists, no problem or
  ** Insert code for testing rights, etc
ENDTRY
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform