The following code will check if there is a file called "index.asp" in a certain folder (just change the folder name).
<%
Set fileIO = CreateObject("Scripting.FileSystemObject")
path=Server.Mappath("/the_folder_name")
Set Dir=fileIO.GetFolder(path)
Set FileCollect=Dir.Files
For Each item in FileCollect
if item.name="index.asp" then response.write "Yes"
Next
set fileIO=Nothing
%>
In the beginning the universe was created. This has made a lot of people very angry and is generally regarded as a bad idea.
- Douglas Adams
The Hitchhiker's Guide to the Galaxy