I want to echo a single digit from a string assigned to a variable, but the position of the echoed digit would be determined by another variable.
Something like:
set a=ABCDEF
set b=3
echo %a:~%b%,1%
As if you wanted to echo the 3rd digit in the ABCDEF
string this would be the same as:
echo %a:~3,1%
The reason im trying to do it this way is because the b variable will be prompted from the user several times with different values.