用ASP显示目录的大小字节
时间:2006-07-31 02:00:00
来源: 作者: 点击:次 出处:技术无忧
关键字:用AS
程序代码:<%
Set MyFileSize = Server.CreateObject ("Scripting.FileSystemObject")
MyPath = Server.MapPath("/Web")
Set MyFolder = MyFileSize.GetFolder(MyPath)
%>
<p><% =MyPath %> is <% =MyFolder.Size %> bytes</p>
显示结果为:
:/Inetpub/wwwroot/Web is 47331 bytes 网页设计 http://www.pc51.net/www/ 提更多网页设计信息

下一篇:ajax的缺点











文章评论
共有 0 位网友发表了评论 此处只显示部分留言 点击查看完整评论页面