programming-examples/asp/More_Code_Snippets/Check if a file exists.asp
2019-11-18 14:25:58 +01:00

10 lines
234 B
Plaintext

<%
Dim objFSO
Set objFSO = Server.CreateObject("Scripting.FileSystemObject")
If objFSO.FileExists("d:\testfile.txt") Then
Response.Write "File exists"
Else
Response.Write "File does not exist"
End If
Set objFSO = Nothing
%>