The SubFolders property returns a collection consisting of all the Folder objects contained in the folder. This includes hidden and system folders.
<html> <script language="JScript"> <!-- var myFileSysObj = new ActiveXObject("Scripting.FileSystemObject"); var myFolder = myFileSysObj.GetFolder("\\temp"); var myEnum = new Enumerator(myFolder.SubFolders); while(!myEnum.atEnd()){ document.write(myEnum.item() + '<br>'); myEnum.moveNext(); } --> </script> </html>