问题
I am trying to do the bellow:
setlocal enabledelayedexpansion
set choice=
set /p choice="Select File Number, or no to exit: "
if "%choice%"=="no" (
goto cleanup
) else (
set "!choice!=%choice%"
start %file!choice!%
pause
)
what i want is to open a file where the variable is %filex% and be able to choose what file to open
来源:https://stackoverflow.com/questions/60470710/making-a-variable-dynamic-in-if-statement