programming-examples/asp/More_Code_Snippets/Check if a file exists.asp

10 lines
234 B
Plaintext
Raw Permalink Normal View History

2019-11-18 14:25:58 +01:00
<%
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
%>