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)
-   -   Recursive search and delete of directories (https://www.kinook.com/Forum/showthread.php?t=5436)

nopcode 07-22-2016 07:39 AM

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.

kinook 07-22-2016 03:26 PM

1 Attachment(s)
See the attached sample, and here for more details:

http://www.kinook.com/VisBuildPro/Ma...lematching.htm

http://www.kinook.com/VisBuildPro/Ma...ilesaction.htm

You can also use Do not delete to debug without deleting files.


All times are GMT -5. The time now is 06:28 PM.


Copyright © 1999-2023 Kinook Software, Inc.