I know what you must be thinking by now... dumb old stanl... same 10-14 lines, just does something different each time
So, here [using about the same 10-14 lines] is an unusual use of Logparser - performing a recursive directory search and placing the data into an Access Table.
For demonstration purposes I also used ADOX to create a new Access DB, as logparser with create the table. The SQL looks for all .xls files on C:, and took a few minutes on my machine; you can change that to *.ppt, *.doc... whatever... Stan
Sub createtable()
'set additional reference to ADOX
cTable = "ExcelFiles"
cSQL = "SELECT Path, Size, CreationTime INTO " & cTable & " FROM C:\*.xls ORDER BY CreationTime DESC"
cMDB = ActiveWorkbook.Path & "\xl.mdb"
If Dir(cMDB) <> "" Then Kill (cMDB)
'quickie to create Access database
cConn = "Provider=MicroSoft.Jet.OLEDB.4.0; Data Source=" & cMDB
Set oCat = CreateObject("ADOX.Catalog")
oCat.Create cConn
Set oCat = Nothing
Set oLog = CreateObject("MSUtil.LogQuery")
Set oInput = CreateObject("MSUtil.LogQuery.FileSystemInputFormat")
oInput.recurse = -1 'total recursion to all subdirectories
Set oOut = CreateObject("MSUtil.LogQuery.SQLOutputFormat.1")
'NOTE: the Jet 4.0 Provider was used to create the MDB, but use the ODBC driver to create the table
oOut.oConnString = "Driver={Microsoft Access Driver (*.mdb)};Dbq=" & cMDB
oOut.createtable = 1 'documentation says values are ON|OFF, but use 1|0
oLog.ExecuteBatch cSQL, oInput, oOut
Set oOut = Nothing
Set oInput = Nothing
Set oLog = Nothing
End Sub