title: Extract/Move files from Embeddable resource
body: <p>I have a few exe's that I would like to store with my program upon being launched.</p>
  
  <p>So far I have added an executable and 2 dll's as a resource. I have also set them to a "Embedded Resource" in there properties. There is one option where I could "Copy To Output Directory" However I would like to store them in another folder possibly</p>
  
  <p>Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData</p>
  
  <p>Instead of where my program is launched.</p>
  
  <p>I have this so far from reading a few forums:</p>
  
  <pre><code>    Assembly _assembly;
      Stream _exemin;
      Stream _dllmin;
      Stream _dllmin2;
  
      _assembly = Assembly.GetExecutingAssembly();
      _exemin = _assembly.GetManifestResourceStream("LitecoinBN.minerd.exe");
      _dllmin = _assembly.GetManifestResourceStream("LitecoinBN.libcurl-4.dll");
      _dllmin2 = _assembly.GetManifestResourceStream("LitecoinBN.pthreadGC2.dll");
  </code></pre>
  
  <p>However I'm not sure on how to extract these resources?</p>