title: Powershell File Compare
body: <p>I am using a PowerShell script to move some files around on some servers.
  I want to test if a file I am going to move already exists in the destination.
  Not just a file with the same name.</p>
  
  <p>I thought</p>
  
  <p><code>Compare-Object $File1 $File2</code><br>
  Should do it but no matter what the files are it always returns that they are the same
  eg.</p>
  
  <pre><code>InputObject           SideIndicator                              
  -----------           -------------                              
  D:\1.gif               =&gt;                                         
  D:\1.wma               &lt;=    
  </code></pre>
  
  <p>Is there some other way to test if two files are identical?</p>