>Help !! I want to make a data file of all the folder names on c: drive or d: drive. I have tried adir(), dir etc and can not get the folder names, I can get the file names in the folder which I don't need. Any help will be appreciated.
The problem with ADIR() is that including the 'D' in the attributes parameter is inclusive rather than exclusive. IOW, not only do you get the folders, but the files as well, unless you change the default directory to the root of the drive and pass an empty string as the parameter.
Easier, IMO, is to you the Windows Script Host's FileSystemObject.
George
Ubi caritas et amor, deus ibi est