>Hi All,
>
>I am currently writing a program that is supposed to read data from several folders. Example: there are some sub folders (data1,data2 and so on) in the DATABASE folder. May I know how to list out all the sub-folder in the DATABASE folder? Can ADIR() do the job? or some other way?
>
>Thanks for your advice in advance.
In principle, ADIR() works, but you would have to program for recursion (that is, if you expect folders within folders within folders...). The other tools mentioned in thread (or some of them? - not quite sure) provide the required recursion, with minimal programming effort.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)