title: Copy file by c# access denied
body: <p>I want to copy my application to <code>D:\\Games</code> using this code:</p>
  
  <pre><code>string path = "D:\\Games";
  System.IO.File.Copy(path, Application.ExecutablePath, true);
  </code></pre>
  
  <p>but it gives me this error </p>
  
  <blockquote>
    <p>Access to the path 'D:\Games' is denied.</p>
  </blockquote>
  
  <p>it seams that it haven't access to this path.<br>
  How can I fix this ?</p>