title: best way to delete file from current directory if it exists in destination directory
body: <p>I need to delete a file if it exists in a destination directory and if it doesn't exist move the file from Mydir to Desdir. </p>
  
  <p>Please suggest the best way to delete the file from MyDir if it exists in destDir and do not move it to destDir?  Thank you.</p>
  
  <p>Please see the following code:</p>
  
  <pre><code>On Error Resume Next
          If Dir(destDir &amp; "\" &amp; strFileName2) = "" Then'//file doesn't exist in destDir
              FileSys.MoveFile Source:=myDir &amp; "\" &amp; strFileName2,   Destination:=destDir &amp; "\" '//move the file
          Else
          '//delete this file from myDir and do not move the file
          'code?
          End If
          On Error GoTo 0
  </code></pre>