>do u know how I can get folder names within a directory?
Use ADIR() with an empty string as the file skeleton. First, you'll have to save the current default directory, set the default as the directory you wish to retrieve the folders of, then issue the command. You'll get two more entries in the result array do to the inclusion of the directory itself (shown as ".") and its parent (shown as ".."). Of course, this does not apply to the root directory. Once the command has been issued, you'll need to restore the original default.
With the WSH, however, if it's available all you have to do is iterate through the sub-folders collection.
George
Ubi caritas et amor, deus ibi est