title: CopyFile fails with error code 3 (ERROR_PATH_NOT_FOUND)
body: <p>So, before starting, I have been researching (not only on Stack Overflow) and I can't find a solution to my problem. </p>
  
  <p>I am trying to copy a file to a certain place (and if possible, change its name at the same time I copy it) using Windows' <code>CopyFile</code> function. </p>
  
  <p>I've created a sample program to show the error.</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;Windows.h&gt;
  using namespace std;
  
  int main()
  {
      cout &lt;&lt; "Copy in progress" &lt;&lt; endl;
      bool X = CopyFile(L"test.txt", L"C:\\", 1); //NOT C: nor C:\\ 
      if (!X){ cout &lt;&lt; "FALLO AL COPIAR\n"; cout &lt;&lt; "Error: "&lt;&lt;GetLastError();}
      else{ cout &lt;&lt; "COPIADO CORRECTO";  }
      cin.get(); cin.get();
      return 0;
  }
  </code></pre>
  
  <p><code>GetLastError()</code> returns 3 - which means ERROR_PATH_NOT_FOUND - but, believe me, I've checked every file (test.txt is in the same place as the built .exe, I'm running as admin...) and it still gives 3.</p>
  
  <p>I can't manage to make it work. Notice the  <strong>L</strong>"test"   this is done because I use Visual Studio with certain character set settings, I've tried to change that config and use "test.txt" -> Still error 3.</p>