programming-examples/asp/More_Code_Snippets/Display the size of a folder in bytes.asp
2019-11-18 14:25:58 +01:00

6 lines
216 B
Plaintext

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