How do I exclude a directory based on a wildcard filter

I'm using Finalbuilder to make a build image which is then compiled into a setup program.

I have a list of directories which are in the build tree, called noredistribute-X11, noredistribute-X22.

I can make the image using either a Directory copy and then delete these directories or exclude these from being copied using a FileSet.

However using either method, I can't find a way of deleting directories based on my wildcard exclude noredistribute*

Is there any body that could provide a suggestion on how to get this working.

or simply

Is there anyway of deleting a list of directories with a wildcard

i.e. all directories called \noredistribute*\

I have found a solution.

A program call xrd allows directory deletion using a wildcard. I run this as a DOS command.

The program is available from http://www.geocities.com/jadoxa/delenxrd/

Hi Jon,

Glad you found a solution. There’s no particularly easy way to do this with FinalBuilder at the moment - we can look at expanding the Folder Iterator action so it supports wildcards, at which point you could use a Folder Iterator with a Delete Directory action as its child. To make a “pure” FinalBuilder solution at the moment you will need to use Folder Iterator -> If … Then -> Delete Directory, which is a bit fiddly.

Regards,

Angus