Ver Mensaje Individual
  #2 (permalink)  
Antiguo 20/02/2005, 16:10
Avatar de sjam7
sjam7
 
Fecha de Ingreso: diciembre-2001
Ubicación: Guadalajara, Mexico
Mensajes: 3.672
Antigüedad: 23 años, 4 meses
Puntos: 16
Usando FSO asi:

Set fso = CreateObject("Scripting.FileSystemObject")
if (fso.FileExists(server.mappath(nombrefoto))) then
FSO.deletefile(Server.MapPath(nombrefoto))
end if

donde primero comprueba que exista la imagen y luego la borra
nombrefoto es una variable con el nombre de la imagen