title: How do I get the drive letter a batch script is running from?
body: <p>I have a batch script on a CD. Whenever I try to run it and enter <code>%~d0</code>, it returns the C: drive instead of F:, which is my CD drive.</p>
  
  <p>What is a way to find the drive letter?</p>