╃苍狼山庄╃╃苍狼山庄╃

Clang出品,
必属精品!

用ASP显示目录的大小

<%
Set MyFileSize = Server.CreateObject ("Scripting.FileSystemObject")
MyPath = Server.MapPath("/clang")
Set MyFolder = MyFileSize.GetFolder(MyPath)
%>

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

显示结果为:
:\Inetpub\wwwroot\clang is 47331 bytes

本原创文章未经允许不得转载 | 当前页面:╃苍狼山庄╃ » 用ASP显示目录的大小

评论

文章评论已关闭!