Posted by Valerie on June 24, 2011 at 04:33:11:
In Reply to: Multiple variables within dos substring extraction posted by 911940043113 on June 23, 2011 at 12:44:21:
@echo off
cls
setlocal enabledelayedexpansion
set variable=12345
set y=3
set z=1
set X=!variable:~%y%,-%z%!
echo X = %X%