View Single Post
  #1  
Old 07-23-2012, 11:09 AM
Too_Tall_Crown_Victoria Too_Tall_Crown_Victoria is online now
Registered User
 
Join Date: 01-14-2003
Posts: 44
Locate does not work well for directory with wildcards

I am using VBP 8.0 and trying to write a script to search a directory which contains a number of other directories in it. I want to search these based on a wildcard and process only the folders that match.

For example:

C:\Temp\A_123_20120722\
C:\Temp\A_123_20120723\
C:\Temp\B_234_20120722\
C:\Temp\B_234_20120723\

I would like to find and delete any folder matching C:\Temp\*_%T_DATE% where %T_DATE% = 20120722

Thanks
Reply With Quote