Ver Mensaje Individual
  #4 (permalink)  
Antiguo 04/05/2005, 09:27
Avatar de Saruman
Saruman
 
Fecha de Ingreso: mayo-2003
Ubicación: Panama city, Panama, Panama
Mensajes: 1.154
Antigüedad: 22 años
Puntos: 5
bueno, yo lo hago pero ejecutandolo en el mismo server el FSO...
y mandando el path con Server.MapPath().
sobre lo otro nunca lo havia visto o hecho asi... si se puede bueno, ya aprendimos algo no?

quedaria asi:

Código:
Function IsFileExists(strNombre)
	Set FSO = Server.CreateObject("Scripting.FileSystemObject")
		
	if FSO.FileExists(server.MapPath(strNombre)) = true then
		IsFileExists = true
	else
		IsFileExists = false
	end if
				
	set FSO = Nothing
End Function


if IsFileExists("/imagenes/1.gif") = true then
response.write("ok")
else
response.write("nop")
end if
__________________
Saruman

One Ring to rule them all, One Ring to find them, One Ring to bring them all and in the darkness bind them.