# Recursive search

**URL:** https://www.finalbuilder.com/forums/t/recursive-search/1884
**Category:** Discussion
**Created:** [October 25, 2011, 4:33am UTC](https://www.finalbuilder.com/forums/t/recursive-search/1884 "2011-10-25T04:33:39Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![ranch](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/r/bcef8e/32.png) [@ranch](https://www.finalbuilder.com/forums/u/ranch)
#### Post date: [October 25, 2011, 4:33am UTC](https://www.finalbuilder.com/forums/t/recursive-search/1884/1 "2011-10-25T04:33:39Z")

</div>

Hi,

I'm iterating through a csproj file, and for each result (file name) I would like to search and find this file and do the same iteration on it....and so on till the iteration returns no results.

example:

Iteration through a.csproj --\> found file names b.csproj and c.csproj --\> find b.csproj and c.csproj (in local drive) --\> iterate through b.csproj and c.csproj --\> found file names d.csproj and e.csproj (in b.csproj) and f.csproj and (in c.csproj) --\> find d.csproj, e.csproj and f.csproj (in local drive) --\> iterate through d.csproj, e.csproj and f.csproj --\> etc' etc' --\> iterate through x.csproj, y.csproj and z.csproj --\> no csproj file names found --\> continue action list flow.

Cheers,

Ranch.

---

<div class="post-metadata">

### Author: ![stephen.ryan](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/s/f14d63/32.png) [@stephen.ryan](https://www.finalbuilder.com/forums/u/stephen.ryan)
#### Post date: [October 26, 2011, 5:08am UTC](https://www.finalbuilder.com/forums/t/recursive-search/1884/2 "2011-10-26T05:08:46Z")

</div>

Hi Ranch

I have attached a small project that demonstrates the sort of logic that you will need, it is only a rough example that will hopefully point you in the right direction. You will need to change yours to do exactly what you want.

For example if you can only obtain the file name (without the path) from the current file then you may need to use the Find File(s) action to get the entire file path.

Hope this helps.

Regards,  
Steve

[RecursiveSearch.zip](https://www.finalbuilder.com/forums/uploads/default/original/2X/0/098ab595af169f431355d565ebeeeb85a3015df6.zip) (5.161 KB)
