How to get specific directories for process
<p>I have a directory which contains many subdirectories. For example:</p>

<pre><code>Emp1
 Acc
 profile
   pro1.xml
   pro2.xml
 data
Emp2
 Acc
 profile
   pro1.xml
   pro2.xml
 data
Emp3
 Acc
 profile
   pro1.xml
   pro2.xml
 data
</code></pre>

<p>I want to write a foreach loop so I get only files which reside in the profile folder. For example:</p>

<pre><code> foreach string filename in directory.getdirectories(filepat){
        //code.
  }
</code></pre>

<p>Can someone please help me create a search pattern to do this?</p>
