Quantcast
Channel: Task Scheduler Managed Wrapper
Viewing all articles
Browse latest Browse all 2206

New Post: How to get all runtimes from a task ( planned and manuel triggered)

$
0
0
Hello,
i want to get a list of all runtimes from a task.
I have the following situation:

10:10 o'clock Task was planned
10:15 o'clock manuel triggered
10:20 o'clock manual triggered

With the method getRunTimes(), i get only the exectuion times for the planned one, not the manuel triggered.
Dim allRunsFromOneTask() As Date
allRunsFromOneTask = task.GetRunTimes(dStartdate.ToUniversalTime(), dEnddate.ToUniversalTime())
so i get the first one with getRunTimes-method and the last one with lastRunTime proberty but not the one in the middle.
allRunsFromOneTask(allRunsFromOneTask.Length - 1) = task.LastRunTime
Does someone have an idea ?

Viewing all articles
Browse latest Browse all 2206

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>