如何获知并显示文件的大小?

<%

Set MyFileSize = Server.CreateObject (“Scripting.FileSystemObject”)

MyPath = Server.MapPath(“/somedirectory”)

Set MyFolder = MyFileSize.GetFolder(MyPath)

%>

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

 xml:namespace prefix = o ns = “urn:schemas-microsoft-com:office:office” /??

    我们可以看到显示的样式如:Shenzhaoyang\Chunfeng\somedirectory is 66093625 bytes。

[1]

共计人评分,平均

到目前为止还没有投票!成为第一位评论此文章。

(0)
扎眼的阳光的头像扎眼的阳光普通用户
上一篇 2023年12月29日
下一篇 2023年12月29日

相关推荐