title: Why does 'Run as administrator' change (sometimes) batch file's current directory?
body: <p>I have a batch file that is in the same directory as the file I want to <code>xcopy</code>. But for some reason the file is not being found.</p>
  
  <p>I thought that current directory was always where the batch file was located.</p>
  
  <p>I run batch file as administrator. This occurs on a Windows 7 64-bit desktop computer.</p>
  
  <p>Batch file:</p>
  
  <pre><code>@ECHO OFF
  XCOPY /y "File1.txt" "File2.txt"
  PAUSE
  </code></pre>
  
  <p>Error:</p>
  
  <pre><code>File not found - File1.txt
  0 File(s) copied
  </code></pre>