Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Build directory structure
Message
De
13/08/2009 15:58:04
 
 
À
13/08/2009 09:42:35
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Divers
Thread ID:
01417859
Message ID:
01418001
Vues:
60
>I have written recursive code to build a directory structure. It works fine with small structures, but with a large one it takes a very long time. Any hints of speeding such a task up? Any commercial components available?

One interesting possibility is to just use the VFP MD command. It is actually recursive:
* Suppose none of the folders below already exist:
MD C:\Level1\Level2\Level3\Level4
* creates all the intermediate folders, as needed, with the single command
* However, the folder names do not respect case, they are all LOWER()ized
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform