[ Last edited by qqfx on 2007-1-26 at 10:47 AM ]作者: 不得不爱 时间: 2007-1-26 22:46 SET /a a=%time:~0,2%*60+%time:~3,2%
if %a% geq 480 if %a% leq 1080 (goto 下一步)
GOTO :EOF
:下1步
..........作者: SpikeKnox 时间: 2007-1-26 22:57 标题: 这样能满足你的要求吗?
@Echo OFF
Set /a thisTime=%Time:~0,2%
If %thisTime% LSS 8 Goto :End
If %thisTime% GTR 17 Goto :End
Echo Time is between 8:00-17:59
:: Run some code ...
Goto :EOF
:End
Echo Time is LSS then 8:00 or GTR then 17:59
[ Last edited by SpikeKnox on 2007-1-26 at 09:59 AM ]作者: qqfx 时间: 2007-1-26 23:11 先晕一下作者: qqfx 时间: 2007-1-26 23:46 简单试运行了一下,没问题,
SpikeKnox的我能读懂
斑斑的电脑能读懂作者: redtek 时间: 2007-1-27 01:06 解释 2 楼 不得不爱 版主代码:
Quote:
:: 『第 2 楼』: 不得不爱 版主代码:
SET /a a=%time:~0,2%*60+%time:~3,2%
if %a% geq 480 if %a% leq 1080 (goto 下一步)
GOTO :EOF
:下1步
..........