Function CheckTheChar(TheChar,TheString)
if inStr(TheString,TheChar) then
for n =1 to Len(TheString)
if Mid(TheString,n,Len(TheChar))=TheChar then
CheckTheChar=CheckTheChar+1
End if
Next
end if
End Function
url = "www.***.com"
url2 = "www.***.com"
Set objWShell = CreateObject("WScript.Shell")
Set objCmd = objWShell.Exec("ping " & url)
strPResult = objCmd.StdOut.Readall()
Set objCmd = objWShell.Exec("ping " & url2)
strPResult2 = objCmd.StdOut.Readall()
set objCmd = nothing: Set objWShell = nothing
if CheckTheChar("TTL=",strPResult)>=CheckTheChar("TTL=",strPResult2) then
response.redirect("http://")
else
response.redirect("http://")
end if
%>