Hi there,
I'm trying to crack a big nut atm...
Supposed I have a string
SET xx=Andreas
Now I can echo the first 5 characters
echo %xx:~0,5%
You get "Andre".
Now I want to calculate the target position by a constant, say
SET upto=5
But
echo %xx:~0,%upto%%
does not work, since DOS batch does not seem to sup****t nested variables.
Is there any way I can accomplish this anyway?
TIA, Andreas