utilizzando uno script che serva a verificare l'esistenza di
un file ho iserito il seguente if

If CInt(pagestatus)=404 Then Path_Cop="copertine/0000-0.jpg"

fatto sta che anche se il file non esiste mi viene dato come status 200 (come se esistesse) quindi non funziona lo script!

sono certo che funziona perchè se metto <> 404 la variabile path_cop assume il valore richiesto!


codice:
Set xmlhttp = Server.CreateObject("MSXML2.ServerXMLHTTP")
xmlhttp.Open "GET", Path_Cop, False
xmlhttp.Send
pagestatus = xmlhttp.Status
Set xmlhttp = Nothing
If CInt(pagestatus)=404 Then Path_Cop="copertine/0000-0.jpg"