CheckFile函数之asp实现检查某一文件是否存在的代码
2007-09-01 00:00
513 查看
'==================================================
'函数名: 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
'函数名: 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
相关文章推荐
- CheckFile函数之asp实现检查某一文件是否存在的代码
- PHP判断远程图片或文件是否存在的实现代码
- php中检查文件或目录是否存在的代码小结
- ajax判断远程文件是否存在 后台代码实现
- php中检查文件或目录是否存在的代码小结
- PHP判断远程图片或文件是否存在的实现代码
- php中检查文件或目录是否存在的代码小结
- php中检查文件或目录是否存在的代码小结
- php中检查文件或目录是否存在的代码小结
- php下利用curl判断远程文件是否存在的实现代码
- shell判断文件,目录是否存在或者具有权限的代码
- 用as检测服务器端的某个flv文件是否存在的代码
- C/C++中判断某一文件或目录是否存在
- asp实现检查ip地址是否为内网或者私有ip地址的代码分享
- curl检查远程文件是否存在
- 动软中,在连接服务器时,出现“添加服务器配置失败,请检查是否有写入权限或文件是否存在“错误
- [Dos] 检查文件是否存在并进行压缩,以及过期删除
- shell判断文件,目录是否存在或者具有权限的代码
- ios 文件操作 检查文件是否存在