Information générale
Catégorie:
Codage, syntaxe et commandes
>>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
Cool! Thanks Naomi. I didn't realize MD would do more than the end of the path. That really makes it easy.
- Don :)
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement