News for hackers. Stuff that matters.
Re:We Are Sorry to Inform You (2005) by 4cao on Saturday June 18, 2022 @10:02AM (#31789912)
It does come in handy in some scenarios:

    choice /c abc
    goto choice%errorlevel%

    :choice1
    :choice2
    :choice3
Or, for command-line parameters:

    set ops=a b c
    set op=%1
    for %%p in (%ops%) do if "%op%"=="%%p" goto %op%
    goto usage

There are no comments on this comment yet.