:cho set choice= set /p choice= 请选择: IF NOT "%Choice%"=="" SET Choice=%Choice:~0,1% if /i "%choice%"=="1" goto start2 if /i "%choice%"=="2" goto start3 if /i "%choice%"=="3" goto ip if /i "%choice%"=="4" goto other if /i "%choice%"=="5" goto virus if /i "%choice%"=="6" goto taskill if /i "%choice%"=="7" goto quanxian if /i "%choice%"=="8" goto del if /i "%choice%"=="9" goto end if /i "%choice%"=="0" goto kill if /i "%choice%"=="h" goto help echo 选择无效,请重新输入 echo. goto cho
:Choice2 set choice2= set /p choice2= 请选择: IF NOT "%Choice2%"=="" SET Choice2=%Choice2:~0,1% if /i "%choice2%"=="1" goto optimize if /i "%choice2%"=="2" goto Restore if /i "%choice2%"=="3" goto begin if /i "%choice2%"=="4" goto end echo 选择无效,请重新输入 echo. goto Choice2