PDA

View Full Version : Speeding up list files action?


CREvans
03-12-2013, 01:57 PM
Hello! I'm working on a utility in VBPro which will scan a set of subdirectories at a given level, and then delete only those subdirectories at that level which have no files newer than a given age. I have all this working by doing a ProcessFiles action to get the list of subdirectories I want to check, then use a "List Files" action with a criteria of a given age for the Maximum Modification Date property. This works fine, but the "List Files" action is very slow if there are a lot of files in that subdirectory structure. I've not found any way to break out of the List Files action, so it ends up slogging through the whole directory structure of the given subdirectory even if there is an early match to my search criteria, often taking several minutes to complete the whole listing for each subdirectory.

Is there a faster way to find out if a subdirectory has any files newer than a given age than using the List Files action?

Thanks!
Scott

kinook
03-12-2013, 02:05 PM
You could try VBScript (FileSystemObject) or PowerShell or write and call your own executable.