% strPathInfo = Request.ServerVariables("Path_Info") 'gets virtual path to file strPhyPath = Server.MapPath(strPathInfo) 'gets physical path, required for FileSystemobjects set objFso = server.createObject("Scripting.FileSystemObject") set objFile = objFso.GetFile(strPhyPath) 'to get info on file set objFolder = objFile.ParentFolder 'gets info about folder set objFolderContents = objFolder.Files %>
File Name | Size | Date Last Modified |
---|---|---|
" REsponse.Write objFileItem.Name & " | " Response.Write "" & objFileItem.Size & " | " Response.Write "" & objFileItem.DateLastModified & " |