programming-examples/asp/More_Code_Snippets/Display the size of a folder in bytes.asp

6 lines
216 B
Plaintext
Raw Normal View History

2019-11-18 14:25:58 +01:00
<%
Set objFile = Server.CreateObject ("Scripting.FileSystemObject")
objFolder = Server.MapPath("/testfolder")
Set MyFolder = objFile.GetFolder(objFolder)
%>
<p><% =objFolder %> is <% =MyFolder.Size %> bytes</p>