I have a result string saved in a variable RES
, this result is something like 2.3/5.0
I would like to get the part before the "/
" and sending it to the batch output through an ECHO
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:
ECHO %RES:~0,pos%
Then the question is: how I get this position from the string? Thanks