title: How to copy/replace a file into a folder in VB.NET?
body: <p>I used <code>File.Copy(source, target, True)</code>, where <code>source</code> is a full path name, like <code>c:\source.txt</code> and <code>target</code> is a folder, which may contain the same named file. I want to copy <code>source.txt</code> to a target folder and overwrite if the file already exists.</p>
  
  <p>But I got the error:</p>
  
  <blockquote>
    <p>'Target is a folder, not a file'</p>
  </blockquote>