69pao国产精品视频-久久精品一区二区二三区-精品国产精品亚洲一本大道-99国产综合一区久久

ASP FileExists 方法

asp fileexists 方法

filesystemobject 對(duì)象參考手冊(cè) 完整的 filesystemobject 對(duì)象參考手冊(cè)

fileexists 方法返回指示指定的文件是否存在的布爾值。如果存在,則返回 ture,否則返回 false。

語(yǔ)法

filesystemobject.fileexists(filename)

參數(shù) 描述
filename 必需的。需檢測(cè)是否存在的文件的名稱(chēng)。

實(shí)例

<%
dim fs
set fs=server.createobject("scripting.filesystemobject")
if fs.fileexists("c:\asp\introduction.asp") then
  response.write("file c:\asp\introduction.asp exists!")
else
  response.write("file c:\asp\introduction.asp does not exist!")
end if
set fs=nothing
%>

filesystemobject 對(duì)象參考手冊(cè) 完整的 filesystemobject 對(duì)象參考手冊(cè)
相關(guān)文章