![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
20/02/2005, 16:10
|
![Avatar de sjam7](http://static.forosdelweb.com/customavatars/avatar10493_2.gif) | | | Fecha de Ingreso: diciembre-2001 Ubicación: Guadalajara, Mexico
Mensajes: 3.672
Antigüedad: 22 años, 5 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 |