Description : How can I list all the folders in a directory with VBScript?
Last Answer : Haven’t tried this, but should work using the .Subfolders method: Set objFSO = CreateObject(“Scripting.FileSystemObject”) Set objFolder = objFSO.GetFolder(“C:\”) Set colSubfolders = objFolder.Subfolders For Each objSubfolder in colSubfolders Wscript.Echo objSubfolder.Name, objSubfolder.Size Next