Iterating on a FileSet (multiple file type)

Hi,

I wanted to know if anybody has an idea for me as I want to iterate to a folder and find *.dll and *.exe files.

So far I used two FileSet Iterator action but I have to copy/paste the same action in both loops.

Also, do you have any idea how I could use some sort of If... Else If... Else
kind of approach ?

I wanna do something different if the dll is under a "bin" directory or if its in a "test" directory or in another directory.
Thank you very much,

Luc

Hi Luc,

Please find the attached project which demonstrates how to use a FileSet to search a directory for .exe or .dll files.

Regards,
Paul

FilesetExample.fbz6 (2.911 KB)

Thank you very much Paul,
This solves my If... Else If question

Now I don't see the part where it filters out only the .dll and .exe.
Am I missing something ?

Regards,
Luc

Hi Luc,

Have a look at the ‘Include Patterns’ tab of the ‘FileSet Define’ action. You’ll notice that we’re only including .exe and .dll.

Regards,
Paul.