I have a string of results stored in a variable RES, this result is similar to 2.3/5.0. I would like to get the part to " /" and send it to batch output through the ECHOcommand. I was looking for how to do this using command commands, but I get only the results so that the substring is fixed, but how can I find out this position? If I knew the position, the only thing I have to do is:
ECHO %RES:~0,pos%
Then the question arises: how do I get this position from a string? Thanks
source
share