Thanks. The above options work allowing to separate
errorlevel processing. But why Choice doesn't allow to type a letter if its piped an "empty" !opt! value, i.e. piped nothing?
Is it possible to similarly echo or pipe a list of batch arguments to a variable?
One way I know is below, but may be there're non-iterative simple ways?
Code: Select all
set "var="
for %%a in (%*) do (set "var=!var! %%a")
Relevant "shorter code" question: when having a list of variable values, what's the elegant way to set multiple variables without repeated "set" statements? I know "set /A" allows to just list equations separated by commas, what about "set"?
Code: Select all
set "apl1=2" & set "apl2=" & set "apl3=kup" .............etc