这是我的代码,我不希望用户必须按 Enter 才能做出选择。我尝试了几件事,但我尝试过的一切都没有奏效。
@echo off
:debut mon menu a moi
cls
echo 1.Calculatrice
echo 2.Task manager
echo 3.msconfig
echo 4.Notepad
echo 5.ipconfig
echo 6.quit
echo.
set /p /c choix=" Choisir votre application : "
if "%choix%"=="1" goto menu1
if "%choix%"=="2" goto menu2
if "%choix%"=="3" goto menu3
if "%choix%"=="4" goto menu4
if "%choix%"=="5" goto menu5
if "%choix%"=="6" goto menu6
Run Code Online (Sandbox Code Playgroud)
我没有包括菜单,因为它不相关