Ver Mensaje Individual
  #2 (permalink)  
Antiguo 29/10/2003, 19:47
Avatar de LeCLUB
LeCLUB
 
Fecha de Ingreso: abril-2003
Ubicación: Barcelona (España)
Mensajes: 205
Antigüedad: 22 años
Puntos: 1
Puedes mirar si existe el archivo por la ruta relativa al dominio

<%
Archivo = "archivo.asp"
Carpeta = "./"

Set FSO = CreateObject("Scripting.FileSystemObject")
If FSO.FileExists(Server.MapPath(Carpeta&Archivo)) Then
response.write ("El archivo Existe")
else
response.write ("El archivo No Existe")
end if
%>


O por la ruta física al disco

<%
Archivo = "archivo.asp"
Carpeta = "c:\inetpub\wwwroot\Html\"

Set FSO = CreateObject("Scripting.FileSystemObject")
If FSO.FileExists(Carpeta&Archivo) Then
response.write ("El archivo Existe")
else
response.write ("El archivo No Existe")
end if
%>