'================================================== '函数名: checkfile '作 用:检查某一文件是否存在 '参 数:filename ------ 文件地址 如:/swf/1.swf '返回值:false ---- true '================================================== public function checkfile(filename) on error resume next dim fsoobj set fsoobj = server.createobject("scripting.filesystemobject") if not fsoobj.fileexists(server.mappath(filename)) then checkfile = false exit function end if checkfile = true:set fsoobj = nothing end function
申明:本教程内容由威凡网编辑整理并提供IT程序员分享学习,如文中有侵权行为,请与站长联系(QQ:254677821)!
|