Création d'un menu en bat

 1ECHO OFF
 2CLS
 3
 4REM https://www.sevenforums.com/tutorials/78083-batch-files-create-menu-execute-commands.html
 5
 6:MENU
 7ECHO.
 8ECHO ...............................................
 9ECHO PRESS 1, 2 OR 3 to select your task, or 4 to EXIT.
10ECHO ...............................................
11ECHO.
12ECHO 1 - Open Notepad
13ECHO 2 - Open Calculator
14ECHO 3 - Open Notepad AND Calculator
15ECHO 4 - EXIT
16ECHO.
17SET /P M=Type 1, 2, 3, or 4 then press ENTER:
18IF %M%==1 GOTO NOTE
19IF %M%==2 GOTO CALC
20IF %M%==3 GOTO BOTH
21IF %M%==4 GOTO EOF
22:NOTE
23cd %windir%\system32\notepad.exe
24start notepad.exe
25GOTO MENU
26:CALC
27cd %windir%\system32\calc.exe
28start calc.exe
29GOTO MENU
30:BOTH
31cd %windir%\system32\notepad.exe
32start notepad.exe
33cd %windir%\system32\calc.exe
34start calc.exe
35GOTO MENU
36
37:EOF
38echo exit