I have been having a real issue getting something that seems simple, but I can not seem to get a working answer.
Here is what I am doing:
- Setting a variable with a specific name: ex.
set "select=computer1" - I do a test and give that variable a value based on the result after using an if statement : ex
set "%select%=1"This sets the variable%computer1%to1 - I want to see what the value of
%computer1%is however all I know is%select%.
Is there any way I can get the value of %computer1% when only knowing %select%? %select% knows the name of the new variable but I need to know its value without being able to directly call it by hard coded name.
I thought a pipeline might work but I can not seem to figure this out.
Thanks all, I appreciate your help.