: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