gtr"6" goto begin 的时候没问题,但设gtr"321" goto begin ,:x5 就无法执行了。。。
set /p a=:
if "%a%" lss "1" goto begin
if "%a%" gtr "321" goto begin
goto x%a%
:x1
start 繁体中文拼音输入法(1121).exe
start 0000.bat
exit
goto :eof
:x2
start 英国英语输入法(1121).exe
start 0000.bat
exit
goto :eof
:x3
start 简体中文五笔画输入法(1211).exe
start 0000.bat
exit
goto :eof
:x4
start 1.bat
call 0000.bat
exit
goto :eof
:x5
start 3.bat
call 0000.bat
exit
set /p a=:
if "%a%" lss "1" goto begin
if "%a%" gtr "321" goto begin
goto x%a%
:x1
start 繁体中文拼音输入法(1121).exe
start 0000.bat
exit
goto :eof
:x2
start 英国英语输入法(1121).exe
start 0000.bat
exit
goto :eof
:x3
start 简体中文五笔画输入法(1211).exe
start 0000.bat
exit
goto :eof
:x4
start 1.bat
call 0000.bat
exit
goto :eof
:x5
start 3.bat
call 0000.bat
exit