Snippets

Here is your code snippet

Code


Folder path and size

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)
%>

<p><% =MyPath %> is <% =MyFolder.Size %> bytes</p>