FOR /F %%i in ('tasklist /nh /fi "imagename eq OUTLOOK.EXE"') do set var=%%i
set info=%var:~0,5%
if %info%==OUTLO goto startreport
start "" outlook.exe
:startreport
for %%i in (*模板.xl*) do (
echo %%i
start /w "" excel.exe "%%i" /batOpen
)
echo "DONE"
我现在想在这段代码
:startreport
for %%i in (*模板.xl*) do (
echo %%i
start /w "" excel.exe "%%i" /batOpen
)
结束后,在每天19:15的时候再运行下面这段代码,
:startreportnew
for %%i in (*样板.xl*) do (
echo %%i
start /w "" excel.exe "%%i" /batOpen
)
如何在原来代码里修改进去,根据系统时间自动判断,如果时间没到19:15,继续等待,如果时间超过19:15运行新代码。