title: An unhandled exception of type 'System.IO.DirectoryNotFoundException' occurred in mscorlib.dll
body: <p>I get this error when I run my code. Essentially it should be moving data from whichever string matches mapping to the string in textbox1.</p>
  <p>The entire error is as follows:</p>
  <blockquote>
  <p>An unhandled exception of type 'System.IO.DirectoryNotFoundException' occurred in mscorlib.dll</p>
  <p>Additional information: Could not find a part of the path 'C:\Users\jpearson\Documents\Visual Studio 2013\Projects\WindowsFormsApplication2\WindowsFormsApplication2\bin\Debug\0110'.</p>
  </blockquote>
  <p>I have validated that all of the file paths in the code are valid, so I am not entirely sure what I am missing.</p>
  <pre><code>  private void button1_Click(object sender, EventArgs e)
          {
              folderBrowserDialog1.ShowDialog();
              textBox1.Text = folderBrowserDialog1.SelectedPath;
          }
  
  
          private Dictionary&lt;string, string&gt; mapping = new Dictionary&lt;string, string&gt;
           {
               { &quot;0110&quot;, @&quot;C:/Example&quot; },
               { &quot;1000&quot;, @&quot;C:/Example2&quot; },
               { &quot;1100&quot;, @&quot;C:/Example3&quot; },
           };
  
  private void button2_Click(object sender, EventArgs e)
  {
  
      string destination = textBox1.Text;
      string source = textBox2.Text;
  
      if (mapping.ContainsKey(source))
      {
          foreach (var f in Directory.GetFiles(source))
          {
              File.Copy(f, Path.Combine(destination, Path.GetFileName(f)));
              GC.Collect();
              GC.WaitForPendingFinalizers();
          }
      }
      else
      {
          MessageBox.Show (&quot;Oh No! Something went wrong, try again!&quot;);
      }
  }
  </code></pre>