Select Case 的简单实现

时间:2023-03-08 20:02:23
Select Case 的简单实现

FOR %%f in (1,3,5,7,) do if errorlevel == %%f goto CASE%%f
      
echo                    ERROR           
       goto end

: CASE1
        c:
        win
        goto end

: CASE3
        c:
        call 1.bat
        goto end

: CASE5
        type 0.bat |more
        goto end
 

       : CASE7
        C:
        CLS
        DIR,/P

: END