Folder.Size : Folder : MS JScript JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » MS JScript » Folder »

 

Folder.Size







The Size property returns the byte size of the folder.












<html>
    <body>
    <script language="JScript">
    <!--
    function get(){
      var myObject = new ActiveXObject("Scripting.FileSystemObject");
      var myFolder = myObject.GetFolder("c:\Program Files");
      alert (myFolder.Size);
    }
    // End hide-->
    </script>
    Get the size of the "c:\Program Files" folder.
    <form name="myForm">
    <input type="Button" value="Get Size" onClick='get()'>
    </form>
    </body>
    </html>







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo MS JScript
» Folder