ciao a tutti, dovrei mostrare le dimnesioni di un file in una pagina asp. Ho trovato in rete questo bellissimo script per la data:
codice:
<%
function datafile(nf)
  Dim fDoc 'filesystem 
  Dim rootpath 'percorso fisico
  Dim ObjFile 'oggetto file
  datafile="null"
  
  Set fDoc = CreateObject("Scripting.FileSystemObject")			
  rootpath = nf
  			
  If fDoc.FileExists(rootpath) Then	
    'response.write("Esiste")
    Set ObjFile = fDoc.GetFile(rootpath)	
       'response.write ObjFile.DateLastModified
       datafile = ObjFile.DateLastModified
    Set ObjFile = Nothing
  end if   
  
  Set fDoc = nothing
end function
%>
Posso usarla per la dimensione dei file?