I am writing a batch library that must not be local, so that external batch files may call upon the functions from a single defined location.
This requires that the calling batch file must pass in a "unique" identifier for the variables named within. (I.E. pass in Application1 for %1).
I then wish to dynamically name variables, such as:
set %1_Timer=Hello
This works well, except I need to be able to evaluate said dynamic variables, but cannot find a solution that allows me to evaluate these parameter based dynamic variables.
I've tried solutions such as:
echo %1_Timer%
echo %1_Timer
echo %%1_Timer%%
echo %%1_Timer%
Call echo %%1%_Timer%
I cannot use a variable that is not dynamically named as other scripts utilizing this library might alter that non-dynamic variable, altering the output for other scripts.