programming-examples/asp/More_Code_Snippets/This will display the path to a folder and the size of it in bytes.asp

6 lines
203 B
Plaintext
Raw Permalink Normal View History

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