title: C# Copy to disk a group of file from Resources
body: <p>I'm doing a installer program and I want to install a bunch of file to the disk. I don't know if that's the best way, but I added my files to MyProject's Resources in subfolders (Effect, Images etc.). I would like to be able to copy to the disk each files to the right folder.</p>
  
  <p>What I'm doing:</p>
  
  <pre><code>File.WriteAllBytes("C:\\test\\Effects\\rfx_engColdStart.fx", Resources.rfx_engColdStart);
  File.WriteAllBytes("C:\\test\\Effects\\rfx_engCold2.fx", Resources.rfx_engCold2);
  </code></pre>
  
  <p>I want to copy the whole folder called Effects from my Resources to disk or if that's not possible simply find all .fx file and copy them to disk. I have to do this with differents files that goes in different locations.</p>
  
  <p>How can I achieve that? Thanks!</p>