Ver Mensaje Individual
  #4 (permalink)  
Antiguo 11/05/2002, 15:17
Owen-Bonilla
 
Fecha de Ingreso: mayo-2001
Ubicación: Monterrey, N.L.; México
Mensajes: 558
Antigüedad: 24 años
Puntos: 0
Re: Visualizar el contenido de un directorio con ASP

Código:
  <%
If Request.ServerVariables("HTTPS") = "off" then ' off for example only
 Dim MyFSO, MyFiles, MySelf, MySelfTemp
 Dim MyPhysPath, MyRootPath, MyURLPath
 MySelf = Request.ServerVariables("SCRIPT_NAME")
 MyRootPath = Server.MapPath(MySelf)
 MySelfTemp = Replace(MySelf, "/", "\")
 MyRootPath = Replace(MyRootPath, MySelfTemp, "\")
 Set MyFSO = CreateObject("Scripting.FileSystemObject")
 
 MyPhysPath = Request("MyPhysPath")
 If MyPhysPath = "" then
  MyPhysPath = MyRootPath
 Else
  MyPhysPath = MyPhysPath &"\"
 End if