Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] General Discussion

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 03-12-2013, 01:57 PM
CREvans CREvans is online now
Registered User
 
Join Date: 03-10-2008
Location: Iowa
Posts: 28
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
Reply With Quote
  #2  
Old 03-12-2013, 02:05 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,003
You could try VBScript (FileSystemObject) or PowerShell or write and call your own executable.
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



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


Copyright © 1999-2023 Kinook Software, Inc.