Asp > Code Snippets
Display the size of a folder in bytes
Display the size of a folder in bytes <% Set objFile = Server.CreateObject ("Scripting.FileSystemObject") objFolder = Server.MapPath("/testfolder") Set MyFolder = objFile.GetFolder(objFolder) %>
<% =objFolder %> is <% =MyFolder.Size %> bytes
Asp Codes
ActiveX
ADO
Array
Code Snippets
Components
Data Access
Date Time
Files
Graphics
HTML Formatting
Mathematics
Miscellaneous
Sessions
SQL
Strings
Techniques
XML