title: How to get the path of the batch script in Windows?
body: <p>I know that <code>%0</code> contains the full path of the batch script, e.g. <code>c:\path\to\my\file\abc.bat</code></p>
  
  <p>I would <code>path</code> to be equal to <code>c:\path\to\my\file</code></p>
  
  <p>How could I achieve that ?</p>