ASP FileExists Method
Complete FileSystemObject Object Reference
The FileExists method returns a Boolean value that indicates whether a
specified file exists. It returns True if the file exists and False if not.
Syntax
|
FileSystemObject.FileExists(filename)
|
| Parameter |
Description |
| filename |
Required. The name of the file to check if exist |
Example
<%
dim fs
set fs=Server.CreateObject("Scripting.FileSystemObject")
if fs.FileExists("c:\asp\introduction.asp")=true 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
%>
|
Complete FileSystemObject Object Reference
Click here to design a Stunning Flash Website for Free
Wix is a revolutionary web design tool that provides anyone with the possibility to create professional and beautiful websites for free.
With e-commerce features, search engine visibility and many more professional tools, Wix is the ultimate solution for creating a spectacular site while saving tons of money.
|