Asp > Code Snippets
This will display the path to a folder and the size of it in bytes
This will display the path to a folder and the size of it in bytes <% Set MyFileSize = Server.CreateObject ("Scripting.FileSystemObject") MyPath = Server.MapPath("/") Set MyFolder = MyFileSize.GetFolder(MyPath) %>
<% =MyPath %> 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