title: Effective copying multiple files
body: <p>I have to copy quite a lot of files from one folder to another. Currently I am doing it in this way:</p>
  
  <pre><code>string[] files = Directory.GetFiles(rootFolder, "*.xml");
  foreach (string file in files)
  {
      string otherFile = Path.Combine(otherFolder, Path.GetFileName(file));
      File.Copy(file, otherFile);
  }
  </code></pre>
  
  <p>Is that the most efficient way? Seems to take ages.</p>
  
  <p>EDIT: I am really asking if there is a faster way to do a batch copy, instead of copying individual files, but I guess the answer is no.</p>