programming-examples/asp/More_Code_Snippets/This will display the path to a folder and the size of it in bytes.asp
2019-11-18 14:25:58 +01:00

6 lines
203 B
Plaintext

<%
Set MyFileSize = Server.CreateObject ("Scripting.FileSystemObject")
MyPath = Server.MapPath("/")
Set MyFolder = MyFileSize.GetFolder(MyPath)
%>
<p><% =MyPath %> is <% =MyFolder.Size %> bytes</p>