I have created a batch file that alters the PATH depending on what compiler name I pass to it. I also want to select from a number of these variables at runtime, I have another batch file where I generate the name of the appropriate environmental variable to look at, but I can't see how to expand the generated variable
e.g
EXE_PATH_%_1%_%PLATFORM%
so when the batch file is called the environmental variables _1 and PLATFORM expand to produce sections of the naming convention for the name of the variable I want to expand
if I call echo EXE_PATH_%_1%_%PLATFORM%
this would produce the name of the variable I want to expand
How can I go from the generated name, to the contents of the environmental variable with that name?
I suspect delayedexpension is required but I'm not sure