想用P实现以个选择功能,但是有点问题。特请教!
代码:
@echo off
:begin
echo\
echo\ **************************************
echo\ *******If pass please press "Y" or "y"********
echo\ **If you want to Re-test please press any key**
echo\
set /p in=Please input your choose:
if #%in%#==#y# goto next
if #%in%#==#Y# goto next
goto begin
:next
rem **below is other test**
问题(两个):
首先选择了Y或者y不能直接跳转到:next,我想的是只要我以按Y就直接跳转到:next
其次不至此按空格键。
期待各位大侠的帮助
代码:
@echo off
:begin
echo\
echo\ **************************************
echo\ *******If pass please press "Y" or "y"********
echo\ **If you want to Re-test please press any key**
echo\
set /p in=Please input your choose:
if #%in%#==#y# goto next
if #%in%#==#Y# goto next
goto begin
:next
rem **below is other test**
问题(两个):
首先选择了Y或者y不能直接跳转到:next,我想的是只要我以按Y就直接跳转到:next
其次不至此按空格键。
期待各位大侠的帮助



