Folder.SubFolders : Folder : MS JScript JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » MS JScript » Folder »

 

Folder.SubFolders







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>







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo MS JScript
» Folder