title: CopyFile() copy from network drive to local drive in windows 10
body: <p>I'm using Rad Studio for running C++ in window 10.</p>
  <p>I've been trying to copy a file from network drive to local drive.</p>
  <p>When I tried to copy a file from local to local, it worked!</p>
  <p>But when I tried to copy a file from server or mapped driver(Z:),
  there are no error, not copied.</p>
  <p>So it's hard to find the problem.</p>
  <p>I guess that most do need some sort of authentication.</p>
  <p>but I'm still stuck with it.</p>
  <p>Here is my code.</p>
  <pre><code>String source = L&quot;\\\\sever1\\Data\\program1.exe&quot;; // Server to Local : result==&gt; Not copied, no error.
  // What I tried to test.
  //   String source = L&quot;E:\\file1\\083\\program1.exe&quot;;     //Local to Local : result==&gt; It works!
  //   String source = L&quot;Z:\\program1.exe&quot;;         //mapped driver : result==&gt; Not copied, no error.
  String destination = L&quot;C:\\Our Programs\\program1.exe&quot;;
  result = CopyFile( source.w_str(), destination.w_str(), true);
  </code></pre>