Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Validate a pathspec
Message
 
 
À
13/12/2006 10:41:38
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01177175
Message ID:
01177183
Vues:
10
>Has anyone published a routine that will validate a path specification and if it doesn't exist will create it? This would have to be recursive and move up or down the directory structure to see if each subsequent folder existed and if not it would create it. Maybe a do while loop of some sort.
>
>Thanks for your community wisdom.

It does not have to be recursive, I believe. With DIRECTORY function you can check, if the directory exists and MD can create directory several levels deep, as I just tried in the command window
MD c:\test50\test30\test40

In any case, I saw a recent FAQ for validating given path. Validating that a path and filename is usable FAQ #31348
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform