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>