一、获取文件大小
二、获取文件夹大小
Function FunFileSize() dim FSO,dir,strSize set FSO = server.CreateObject("Scripting.FileSystemObject") set dir = FSO.GetFolder(Server.MapPath("../")) strSize = cSize(dir.Size) Set dir = Nothing Set FSO = Nothing FunFileSize = strSize End Function