title: changing directory stops %~dp0 from working
body: <p>I have two batch file on the <code>C:\</code> drive and am using <code>%~dp0</code> command to use the path of the first script to make a copy the second batch script:</p>
  
  <pre><code>COPY %~dp0"Hello World.BAT" C:\"Hello World.bak"
  </code></pre>
  
  <p>Early in the script I am required to change to a sub directory off the root of the <code>C:\</code> but this stops the above copy command from working the error I get is "the file cannot be found". If I stay in the root of the <code>C:\</code> the copy command works perfectly. Any ideas why this is happening.</p>