Ver Mensaje Individual
  #3 (permalink)  
Antiguo 05/01/2005, 10:59
alvgarci
 
Fecha de Ingreso: noviembre-2001
Ubicación: Montevideo
Mensajes: 506
Antigüedad: 23 años, 6 meses
Puntos: 0
No se si es la manera más eficiente, y si hay más de uno con la misma fecha solo se queda con uno. Pero funciona !!!!!!!

<%
Set fs = Server.CreateObject("Scripting.FileSystemObject")
Set lista_archivos = fs.GetFolder(Server.MapPath("./images"))

masreciente=#1980/1/1#

'Mostramos los archivos...
For each filefound in lista_archivos.files
if filefound.DateLastModified > masreciente then
masreciente=filefound.DateLastModified
archivo=filefound.Name
end if
Next

response.write archivo & " - " & masreciente
%>
__________________
Alvaro García

Última edición por alvgarci; 05/01/2005 a las 11:01