Tema: FileExists
Ver Mensaje Individual
  #5 (permalink)  
Antiguo 04/06/2012, 15:45
fabian23
 
Fecha de Ingreso: abril-2012
Mensajes: 93
Antigüedad: 12 años
Puntos: 0
Respuesta: FileExists

Cita:
Iniciado por prod6 Ver Mensaje
las barras van invertidas
if fso.FileExists ("C:\Users\Fabian\Documents\CHFS\" & dato & ".txt") = true
o en su defecto
if fso.FileExists (Server.MapPath("C:/Users/Fabian/Documents/CHFS/" & dato & ".txt")) = true
ya lo intente y tampoco me manda el error que le mande a la persona que contesto primero aqui abajio :S no se que sea!!! mi dato lo modifique asi y no queda ...

Código PHP:
<%
Dim fsodato 
dato 
request.Form("busqueda")

    
Set fso server.CreateObject("Scripting.FileSystemObject")


if 
dato ="" then Response.Write "No se ingreso dato a buscar"
else  fso.FileExists ("C:/Users/Fabian/Documents/CHFS/" dato & )  then  
          Response
.Write "True"    
else      Response.Write "False"

    
end if
set fso=nothing

 
%> 
y me arroja el error :S no se que hacer