After searching I found the problem is that 07 no longer supports the .FileSearch function (which is stupid IMO). Anyway, I have code that worked in 03. It searches for .log files in a directory and if there are more than 10 files present, it deleted the oldest one. What do I need to use in 07 to do this?
Here is the code that worked in 03.
'maintains the number of log files to a max of 10. Deletes the oldest file.
Dim strFilePath As String
strFilePath = GetDBPath
.LookIn = strFilePath
.Filename = "*.log"
If .FoundFiles.Count >= MAX_LOG_COUNT Then