请帮忙看下这代码的判断语句有没问题,不会跳到指定的标签,还有再想问下,在每个标签里面的goto end,能不能不用或者用什么代码来跳出标签,然后运行标签外面的其他命令,谢谢- @echo on& setlocal enabledelayedexpansion
- set t1=%TIME:~1,1%
- set t2=%TIME:~0,2%
- if %t2% LSS 10 (set t=0%t1%) else (set t=%t2%)
-
- if 00 GTR %t% if %t% LSS 14 goto rnckpi07
- if 14 GTR %t% if %t% LSS 22 goto rnckpi15
- if %t% EQU 23 goto rnckpi23
-
- :rnckpi07
- echo rnckpi07
- goto end
-
- :rnckpi15
- echo rnckpi15
- goto end
-
- :rnckpi23
- echo rnckpi23
- goto end
-
- :end
- pause
复制代码
|