>I have tried the adir() function but that only gives me a list of files but what I am after is subdirs. Is there a way to capture them?
Did you try attribute D in the adir() command?
Why do programs stop working correctly as soon as you leave the Fox?