title: How to extract a substring on batch file
body: <p>Now I need get the substring form a string on batch File</p>
  
  <p>I have this</p>
  
  <pre><code>set path="c:\test\branches\9.1\_build"
  </code></pre>
  
  <p>I need get the first value after the branches value : <code>9.1</code></p>
  
  <p>But this value can be in other position like</p>
  
  <pre><code>c:\xxx\yyyy\zzzz\branches\otherbranch\zzz\uuuu\iii
  </code></pre>
  
  <p>In this case, I need get this: <code>otherbranch</code>
  I need one generic solution, Thank you guys.. </p>