利用fso判断文件是否存在
深山工作室 2013/2/6 14:25:45 深山行者 字体:
大 中 小 浏览 10522
利用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
%>
- 相关阅读
- 中国青岛春秋国际旅行社有限公司
- table表格详解,了解表格不为人知的属性,标准化你的表格
- uni-app基础知识列表渲染
- 不凡商旅网
- python里面requests.post返回的res.text还有其它的吗
- ASP操作access或sqlserver数据库的函数库
- asp利用XMLHTTP获取xml数据方法
- 绿色乡村留言板模板
- 共有0条关于《利用fso判断文件是否存在》的评论
- 发表评论