【www.gdgbn.com--Action】
Dim Fso,FsoFile,FileType,FileSize,FileTime,Path
Dim Dir
Action=Trim(Request("Action"))
Set Fso=Server.CreateObject("Scripting.FileSystemObject")
IsErr
If Action = "Del" then
Call DelAll
Else
Dir=Trim(Request.QueryString("Dir"))
Path = Server.MapPath(UploadFolder) & Dir
Set FsoFile = Fso.GetFolder(Server.MapPath(UploadFolder))
FsoFileSize = FsoFile.size "空间大小统计
Set FsoFile = nothing
Set FsoFile = Fso.GetFolder(Path)
Response.Write("") &vbCrlf
Response.Write(" ") &vbCrlf
Response.Write(" 图片主目录:.."&UploadFileDir&" 空间占用:")
Response.Write GetFileSize(FsoFileSize)
Response.Write("
当前目录:asp" title="返回主目录">.."&Dir&" 占用空间:")
Response.Write GetFileSize(FsoFile.size)
Response.Write(" 其中包括"&FsoFile.SubFolders.count&"个文件夹; "&FsoFile.Files.count&"个文件") &vbCrlf
Response.Write(" ") &vbCrlf
Response.Write("") &vbCrlf
Response.Write("
End If
Set FsoFile = nothing
Set Fso = nothing