The topic title is kinda confusing so I'll explain further. I want to extract part of a variable using the
CODE
set variable1=%variable2:X:X%
I'm trying to replace the "X" with a variable already set. I want the effect of:
CODE
set number1=5
set number2=3
set variable1=%variable2:~%number%,%number2%%
set number2=3
set variable1=%variable2:~%number%,%number2%%
Any input is appreciated.
With Regards,
The Panda