Apparently it is possible to use variable interpolation in Windows batch files.
@echo off
set myVar=bob
goto print_%myVar%
echo ALICE
:print_bob
echo BOB
Output is:
BOB
Useful for all kinds of things…
Apparently it is possible to use variable interpolation in Windows batch files.
@echo off
set myVar=bob
goto print_%myVar%
echo ALICE
:print_bob
echo BOB
Output is:
BOB
Useful for all kinds of things…