title: How I get the position of a character from a string in batch
body: <p>I have a result string saved in a variable <code>RES</code>, this result is something like <code>2.3/5.0</code> I would like to get the part before the "<code>/</code>" and sending it to the batch output through an <code>ECHO</code> command. I have been searching how can I do this using batch commands, but only getting results of making substring to a fixed position, but how can I know this position?
  If i would knew the position the only thing I should probably do is:</p>
  
  <pre><code>ECHO %RES:~0,pos%
  </code></pre>
  
  <p>Then the question is: how I get this position from the string? Thanks</p>