title: Get Parent directory of a specific path in batch script
body: <p>Hi I have full file path in a variable of batch file. How to get its first and second level parent directory path?</p>
  
  <pre><code>set path=C:\SecondParent\FirstParent\testfile.ini
  </code></pre>