Set fso = Server.CreateObject("Scripting.FileSystemObject")
Path = Server.MapPath("input/photo/aa) //aa文件或文件夹
Set fld = fso.Getfile(Path)//获得文件
Set fld = fso.GetFolder("X的绝对路径") //文件夹
filesize=fld.Size/1024 //得到文件大小是多少kb
response.write filesize
Set fso = Server.CreateObject("Scripting.FileSystemObject")
Path = Server.MapPath("input/photo/aa) //aa文件或文件夹
Set fld = fso.Getfile(Path)//获得文件
Set fld = fso.GetFolder("X的绝对路径") //文件夹
filesize=fld.Size/1024 //得到文件大小是多少kb
response.write filesize