Latest web development tutorials

ASP FileExists Método

Objeto FileSystemObject Referencia Referencia completa de objetos FileSystemObject

Fileexists devuelve el método que indican el archivo especificado existe valor booleano. Si existe, devuelve Ture, de lo contrario False.

gramática

FileSystemObject.FileExists(filename)

参数 描述
filename 必需的。需检测是否存在的文件的名称。


Ejemplos

<%
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
%>


Objeto FileSystemObject Referencia Referencia completa de objetos FileSystemObject