Kinook Software Forum

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

Thread Tools Rate Thread Display Modes
Old 07-22-2016, 08:39 AM
nopcode nopcode is online now
Registered User
Join Date: 07-19-2016
Posts: 3
Recursive search and delete of directories

I'm having a difficult time setting up a rule that will search for and delete directories (multi-project build). It seems the the Delete Files matching rule doesn't want to match certain things or only matches if the directory is empty in the first place.

In a nutshell, I want to do something like this:

Find all folders that match a pattern (ex: Win32/Debug, Debug_Static, GeneratedFiles, and so on).
Delete ALL of the contents of those directories along with the directory itself.
BUT if the pattern matches the Exclude column, don't delete it or recurse into it.
Reply With Quote
Old 07-22-2016, 04:26 PM
kinook kinook is online now
Join Date: 03-06-2001
Location: Colorado
Posts: 5,976
See the attached sample, and here for more details:

You can also use Do not delete to debug without deleting files.
Attached Files
File Type: bld DelFiles3.bld (2.2 KB, 1059 views)
Reply With Quote

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 12:30 AM.

Copyright 1999-2023 Kinook Software, Inc.