展开全部
@echo off
:begin
cls
set /p nextreg=[Y/N]
rem /i表示不区分大小写
if /i "%nextreg%"=="N" (
echo Please press any key to return.
pause>nul
goto begin
) else if /i "%nextreg%"=="Y" (goto localsettings)
echo;无效输入&ping -n 2 0 >nul&goto begin
:localsettings
echo;ok
pause
:begin
cls
set /p nextreg=[Y/N]
rem /i表示不区分大小写
if /i "%nextreg%"=="N" (
echo Please press any key to return.
pause>nul
goto begin
) else if /i "%nextreg%"=="Y" (goto localsettings)
echo;无效输入&ping -n 2 0 >nul&goto begin
:localsettings
echo;ok
pause
追答
互助互利,及时采纳回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询