How To Determine Last Time Scheduled Task Run
Posted: Thu May 20, 2021 10:40 am
The following script returns the last date and time that CAPITAL Server Agent ran, or attempted to run, a scheduled task:
Code: Select all
Declare dLastDate Type Date
Declare cLastTime Type String
Declare cINI Type String
cINI := PathData() + "SCHEDULE\AGENT.INI"
dLastDate := CTOD(ReadINI("Scheduler", "LastTaskCheckDate", cINI))
cLastTime := ReadINI("Scheduler", "LastTaskCheckTime", cINI)
Echo(dLastDate)
Echo(cLastTime)