XMLHTTP detects whether the remote file exists

xiaoxiao2021-03-06  79

<% response.write "Checks if boot
" on error resume NextSet XML = Server.CreateObject ("Microsoft.xmlhttp") XML.Open "get", "http://www.mcsz.com/ss.mdb ", falsexml.sendints = xml.statusstrs = xml.statustextif isnumeric (INTS) THEN IF INTS = 12007 or strs =" the "The response.write" address "end if INTS = 404 Then Response.write" Can't find the file
"Else Response.write" address correct
"End ifnd ifif response.buffer the response.flushend IF%>