I have a batch (*.bat) file that triggers a Python script and this script takes about 25 minutes to complete interactivly (through command prompt manuallly). This batch file nee
As the above has no exit strategy and is delayed for at least 25 minutes, this batch file code may be better suited to your need, drop a reference into your login batch or other trigger...
@echo off
:loop
set timeHrs=%time:~0,2%
set timeMin=%time:~3,2%
set timeSec=%time:~6,2%
if "%timeHrs%" geq 6 if "%timeHrs%" leq 9 (
[command to trigger Python script]
exit /b 0
)
timeout /t 1500
goto loop