I want to use one variable value as another variable name in command line script. e.g:
set VAR1=%1
call set VAR3=JAVA%VAR1%_HOME
echo %VAR3%
This should print the value of system environment variable called JAVA8_HOME (C:\program Files\Java\jdk1.8.0_121)
How can I do it?