Folder.Files : Folder : MS JScript JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » MS JScript » Folder »

 

Folder.Files







The Files property returns a collection consisting of all the File objects contained in the folder. This includes hidden and system files.












<html>
    <script language="JScript1.1">
    <!--
    var myFileSysObj = new ActiveXObject("Scripting.FileSystemObject");
    var myFolder = myFileSysObj.GetFolder("\temp");
    var myEnum = new Enumerator(myFolder.Files);
    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