title: Fastest way to copy a lot of files
body: <p>What is the fastest way to copy a lot of files? </p>
  
  <p>I wrote a program using this to copy files:</p>
  
  <pre><code>string datapath;
  string savepath;
  
  // Something like this to set the destination for datapath, and savepath:
  using (System.Windows.Forms.FolderBrowserDialog folderBrowserDialog = new System.Windows.Forms.FolderBrowserDialog())
  {
      if (folderBrowserDialog.ShowDialog() == System.Windows.Forms.DialogResult.OK)
      {
          datapath = folderBrowserDialog.SelectedPath;
      }
  }
  
  // And then to copy the files:
  IEnumerable&lt;string&gt; files = Directory.EnumerateFiles(datapath, "*", SearchOption.AllDirectories);
  
  foreach (var file in files)
  {
      File.Copy(file, savepath, true);
  }
  </code></pre>
  
  <p>I copied about 3600 files (16,5 GB total) with this method and it took me 11m 30sec. When i copy the same files with WinExplorer, it takes about 9 minutes, using the same Directories and doing nothing else with the hdd in both tests. </p>
  
  <p>What are faster ways to handle this?</p>