Regular ASP or ASP.NET?
In ASP.NET it is possible (I guess), using the Dir() function. That works like this:
Please Note that this script does not work with regular ASP pages, and doesn't pick a random server
Dim ServerArray As Array, FileArray As Array
'File names on the servers (below)
FileArray.SetValue("file1.exe", 1)
FileArray.SetValue("file2.exe", 2)
FileArray.SetValue("file3.exe", 3)
'The mirror servers
ServerArray.SetValue("http://mirror1.com/" & FileArray.GetValue(1), 1)
ServerArray.SetValue("http://mirror2.com/" & FileArray.GetValue(2), 2)
ServerArray.SetValue("http://mirror3.com/" & FileArray.GetValue(3), 3)
'Check if the file exists
If Dir(ServerArray.GetValue(1)) = FileArray.GetValue(1) Then
'The file exists on server 1
Else
'The file doesn't exists, continue
If Dir(ServerArray.GetValue(2)) = FileArray.GetValue(2) Then
'The file exists on server 2
Else
'The file doesn't exists, continue
If Dir(ServerArray.GetValue(3)) = FileArray.GetValue(3) Then
'The file exists on server 3
Else
'The file doesn't exists, quit
Exit Sub
End If
End If
End If
'By Diep-Vriezer