利用fso判断文件是否存在
深山工作室 2013/2/6 14:25:45 深山行者 字体:
大 中 小 浏览 10528
利用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
%>
- 相关阅读
- 黑色精灵留言板模板
- sql server中前缀为PK、UK、DF、CK、FK表的意思
- excel中End(xlUp)取活动单元表的第一列最后一个有值的行号
- div span 之间不同的用法
- 旅行社手机网站模板8
- 仿MAC官网导航菜单
- 小程序中利用addPhoneContact将联系人的信息添加到手机通讯录支持保存联系人头像
- 一个非常实用的当你在关闭任何窗口时都作出提示[推荐]
- 共有0条关于《利用fso判断文件是否存在》的评论
- 发表评论