title: File already exist using system.io.file.copy
body: <p>I'm using System.IO.File.Copy to copy files from serverA to serverB.  This works fine accept when the file exsist  I get an error "File already exist".  I tried trapping it using if file.exsist and nothing.</p>
  
  <p>here is my code. </p>
  
  <pre><code>'Save files to disk
   FileUpload1.SaveAs(Server.MapPath("../pdf/audits/" &amp; FileName))
   'Local Server
   Dim localPath As String = "\\server01\folder1$\pdf\audits\"
   'Remote Server
   Dim remotePath As String = "\\server02\folder2$\pdf\audits\"
   System.IO.File.Copy(localPath + FileName, remotePath + FileName)
  </code></pre>
  
  <p>What am I missing?</p>