PDA

View Full Version : Detect Whether a File Exists or Not


admin
05-29-2003, 12:09 AM
<%
Set fs = Server.CreateObject( "Scripting.FileSystemObject" )
IF fs.FileExists( "/path to your file" ) THEN
Response.Write "File Exists!"
ELSE
Response.Write "File Doesn't Exist!"
END IF
%>

Thanks Mark W.