verificar un archivo

02/03/2006 - 23:06 por MAB | Informe spam
como puedo verificar si existe una imagen en otro sitio por elj
http://www.unsitio.com/imagen.jpg
con :

<%
Function Imagen(archivo)
Dim FS
Set FS = Server.CreateObject("Scripting.FileSystemObject")

If FS.FileExists(archivo) Then
Imagen = archivo
else
Imagen = ""
end if
set FS = nothing
end function %>

no me funciona

gracias
 

Leer las respuestas

#1 MAB
03/03/2006 - 15:40 | Informe spam
alguna alternativa?
gracias


"Matías Iacono" escribió en el mensaje
news:
El FileSystemObject necesita de rutas fisicas. No puedes, justamente como
comentas, verificar rutas virtuales, como la de internet, con este objeto.

Matías Iacono
Microsoft MVP ASP/ASP.net
DCE3 v.2003 - DCE2 v.2005
Coordinador de evento Comunidad MSDN Bolivia
"MAB" <*** escribió en el mensaje
news:
> como puedo verificar si existe una imagen en otro sitio por elj
> http://www.unsitio.com/imagen.jpg
> con :
>
> <%
> Function Imagen(archivo)
> Dim FS
> Set FS = Server.CreateObject("Scripting.FileSystemObject")
>
> If FS.FileExists(archivo) Then
> Imagen = archivo
> else
> Imagen = ""
> end if
> set FS = nothing
> end function %>
>
> no me funciona
>
> gracias
>


Preguntas similares