Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Build directory structure
Message
From
13/08/2009 15:58:04
 
 
To
13/08/2009 09:42:35
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01417859
Message ID:
01418001
Views:
61
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform