Hi,

How can I check if a file exists on a server?

Let's supposed that I want to check if "http://www.mywebsite.com/mytextfile.txt" exists.
How can I do that?

I tried to do this but it does not work:
Code:
 Dim fso As New FileObject

        If fso.FileExists("http://www.mywebsite.com/mytextfile.txt") Then
                 MsgBox("exists")
        Else
            MsgBox("File not found")
        End If

Thank you in advance for your help,

Andrea