Hi all
How to display the content of a variable that is itself composed of a variable
for example, if we have a variable its name is Age and contain on value 35 , so we can display its value by writing the below line in batch scripting.
set "Age=35"
echo %Age%
and the result will be '35'
but if the name itself of that variable is inside another variable like the below line
set "var=Age"
set "%Age%=35"
, so we can display the content of 'var' variable by the below line
echo %var%
and the result will be 'Age'
my question here is :
Can we display the content of 'Age' variable using 'var' variable?
And if we can How to do this step?