Ver Mensaje Individual
  #1 (permalink)  
Antiguo 21/05/2009, 09:43
Avatar de mc_quake
mc_quake
 
Fecha de Ingreso: enero-2006
Ubicación: www.ecocargo.cl
Mensajes: 683
Antigüedad: 19 años, 3 meses
Puntos: 8
problema al eliminar imagen

hola miren este es el error

Tipo de error:
Microsoft VBScript runtime (0x800A0035)
File not found
/ioweb/archivos_delete.asp, línea 16

Código asp:
Ver original
  1. <%@LANGUAGE="VBSCRIPT"%>
  2. <!--#include file="Connec/Conn.asp" -->
  3. <!--#include file="_includes/funciones.asp" -->
  4.  
  5. <%
  6. Imgs = Trim(rq("img"))
  7. ar_id = int(rq("ar_id"))
  8.  
  9. rw(Imgs)
  10. rw("<br>")
  11. rw(ar_id)
  12.  
  13. 'response.End()
  14.  
  15.  
  16. If Exist(carpetaImg&"/"& Imgs) Then
  17. fso.DeleteFile(Server.MapPath(carpetaImg&"/"&Imgs))
  18. End If
  19.  
  20.  
  21. Sql = "DELETE FROM ARCHIVOS WHERE ar_id = "& ar_id
  22. Set Conn = Server.CreateObject("ADODB.Connection")
  23. Conn.open MM_conn_STRING
  24. Set RS = Conn.Execute(Sql)
  25.  
  26. Response.Redirect(request.ServerVariables("HTTP_REFERER"))
  27.  
  28. %>

el archivo funciones.asp contiene esta funcion:

Código asp:
Ver original
  1. Function Exist(foto)
  2. If fso.FileExists(Server.MapPath(foto)) Then Exist = True Else Exist = False
  3. End Function

y en el Conn.asp esta esta variable

Código asp:
Ver original
  1. carpetaImg = "_file"


diagrama de carpetas

Raiz ioweb
--->_files
---->archivos a borrar....
---->archivos a borrar.....
---->archivos a borrar.....
---->archivos a borrar.....
.
.
.
--->Connec
---->Conn.asp
--->_includes
---->funciones.asp
--->archivos_delete.asp
__________________
Mc_Quake

Para ayudar en lo que se pueda:Zzz: