请把在每行后面的空格去掉:
@echo off
set year=%date:~0,4%
set month=%date:~5,2%
set day=%date:~8,2%
set hour=%time:~0,2%
set minute=%time:~3,2%
set second=%time:~6,2%
set now=%year%%month%%day%%hour%%minute%%second%
set begin=20070301010509
set over=20070901115959
if "%now%" GEQ "%begin%" goto next
exit
:next
if "%now%" LEQ "%over%" goto rune
exit
:rune
start /wait e.exe
exit