利用fso判断文件是否存在
深山工作室 2013/2/6 14:25:45 深山行者 字体:
大 中 小 浏览 10406
利用fso判断文件是否存在。
<%
dim fs,fileURL
fileURL="demo.txt" '要检查是否存在的文件
set fs=Server.CreateObject("Scripting.FileSystemObject")
if fs.FileExists(server.mappath(fileURL))=true then
response.write "<span style='color:blue;'>文件存在</span>"
else
response.write "<span style='color:red;'>文件不存在</span>"
end if
set fs=nothing
%>
- 相关阅读
- 特别推荐的asp数字加密(rsa)
- 七种网站添加链接的简单方法
- 13种样式检测QQ是否在线的代码
- 长城国际集团有限公司
- 深山留言板2.14情人节留言板模板v4.6
- 判断用户注册密码强度的JS代码
- 刘浏家俱
- windows8的iis7应用程序池标识问题
- 共有0条关于《利用fso判断文件是否存在》的评论
- 发表评论