- :js
- set /p time_begin= 开始时间:
- for /f "tokens=1,2 delims=::/-+*" %%i in ("%time_begin%") do (
- set /a hour_b=%%i
- set /a munite_b=%%j
- )
- if errorlevel 1 goto cwts
- set /a time_b1=%hour_b%*100+%munite_b%
-
- set /p time_end= 结束时间:
- for /f "tokens=1,2 delims=::/-+*" %%i in ("%time_end%") do (
- set /a hour_e=%%i
- set /a munite_e=%%j
- )
- if errorlevel 1 goto cwts
- set /a time_e1=%hour_e%*100+%munite_e%
-
- ::模式转换
- echo %time_b1%
- pause
- ::下面这句 IF 不知道哪里错了,一闪而过,谁帮我看一下
- if %time_b1% lss 1800 goto bbms
-
- echo a
- pause
- :bbms
- echo b
- pause
复制代码
|