title: File.Copy error - C# - IOException The filename, directory name, or volume label
body: <p>Trying to copy all files/directories inside a directory to a new location that I create.
  Users select the 'backup drive' to work with to in a combobox, then when they click the backup desktop button it simply creates a backup directory on that drive and copies all the files into that directory.</p>
  
  <p>The backup directory gets created on the drive appropriately - but the first file it hits it kicks off an error.</p>
  
  <pre><code>private void backupDesktopButton_Click(object sender, EventArgs e)
  {
       //set the destionationLocation to the selectedDrive
       string selectedDrive = backupDriveCombo.SelectedItem.ToString();
       string destinationLocation = selectedDrive+"Backups-" + DateTime.Now.Month.ToString()+"-"+DateTime.Now.Year.ToString()+"\\Desktop\\";
       if (!Directory.Exists(destinationLocation))
       {
           Directory.CreateDirectory(destinationLocation);
       }
  
       string desktopFolder = Environment.GetFolderPath(Environment.SpecialFolder.DesktopDirectory);
  
       string[] fileList = Directory.GetFiles(desktopFolder);
       foreach (string file in fileList)
       {
           //move the file
           File.Copy(file, destinationLocation);
       }
  }
  </code></pre>
  
  <p>I get the error:</p>
  
  <blockquote>
    <p><em>IOException was unhandled.</em></p>
    
    <p><em>The filename, directory name, or volume label syntax is incorrect.</em></p>
  </blockquote>
  
  <p>In the 'Autos' window (VS2010) I see the locations are set correctly:</p>
  
  <p>destinationLocation = the appropriate directory (<em>C:\Backups-8-2016\Desktop\</em>)</p>
  
  <p>file = the appropriate first file (<em>C:\Users\myusername\Desktop\myshortcut.url</em>)</p>
  
  <p>What am I missing? I have all rights to be able to copy/paste/create things and the directory to store it gets created - just a problem moving the file.</p>