'函数作用:获取文件大小
function getfilesize(filename)
'判断文件名是不是为空
if filename="" then
getfilesize="0kb"
exit function
end if
dim ofso,ofile,sfile
sfile=filename
set ofso=server.createobject("scripting.filesystemobject")
'判断获取文件大小的文件是否存在
if ofso.fileexists(server.mappath(sfile)) then
set ofile=ofso.getfile(server.mappath(sfile))
'判断获取文件大小
getfilesize= cstr( cdbl( formatnumber( ofile.size / 1024))) & "kb"
else
getfilesize="0kb"
exit function
end if
set ofile=nothing
set ofso=nothing
end function
深海迷航2生物反应堆蓝图获取指南-生物反应堆解锁方法详解
Zeb Orrelios身份解析:揭秘Din Djarin在《The Mandalorian and Grogu》中的关键新盟友
深海迷航2石英前期获取指南-石英采集方法与技巧
深海刮刮乐体验如何:深海刮刮乐详细玩法解析
今日限时特惠:M5 MacBook Air_AirPods Pro 3_Monster Hunter Stories 3等多款好物
每日瑜伽:怎样调整你的练习目标