4 ms·
This is how you do a SWITCH statement in Microsoft’s command language (for .bat files) I think.
by dan-robertson 4y ago
This is how you do a SWITCH statement in Microsoft’s command language (for .bat files) I think.
- 4cao 4y agoIt 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