Kinook Software Forum

Kinook Software Forum (https://www.kinook.com/Forum/index.php)
-   [VBP] General Discussion (https://www.kinook.com/Forum/forumdisplay.php?f=2)
-   -   Speeding up list files action? (https://www.kinook.com/Forum/showthread.php?t=5143)

CREvans 03-12-2013 01:57 PM

Speeding up list files action?
 
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.


All times are GMT -5. The time now is 02:16 PM.


Copyright © 1999-2023 Kinook Software, Inc.