懂BAT的高手来帮我看看这个BAT哪里错误了?不能运行啊!

2024-11-19 00:10:53
推荐回答(1个)
回答1:

请把在每行后面的空格去掉:
@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