title: Batch scripting: What's the difference between %0 and %~f0?
body: <p>I have a Batch script in which I want to get the full path to the script. I'm curious, is there any difference between this:</p>
  
  <pre><code>set scriptpath=%0
  </code></pre>
  
  <p>and this:</p>
  
  <pre><code>set scriptpath=%~f0
  </code></pre>
  
  <p>Thanks for helping.</p>