insert variable into onother variable
Posted: 07 Oct 2013 04:46
Hello,
I try insert a variable into an another variable
I tried this:
How can I insert the variable into an another variable?
Any idea?
thanks in advance, pumi
I try insert a variable into an another variable
I tried this:
Code: Select all
@echo off
set fullstr=asdfghjkl
set /a offset=3
set /a chcount=5
rem set substr=%fullstr:~3,5%
set substr=%fullstr:~%offset%,%chcount%% <- this does't work :-(
echo %substr%
How can I insert the variable into an another variable?
Any idea?
thanks in advance, pumi