利用fso判断文件是否存在。

<%
dim fs,fileURL
 fileURL="Attachment\20113447344437.swf"
set fs=Server.CreateObject("Scripting.FileSystemObject")
if fs.FileExists(server.mappath(fileURL))=true then
 response.write"文件存在"
else
 response.write"文件不存在"
end if
set fs=nothing
%>
posted @ 2011-03-05 10:30  moretop  阅读(400)  评论(0编辑  收藏  举报