Actually, LastAccessTime may be what you want, since AVI files are not executed, they only open. In the past, I used it precisely for the purpose you are describing, but not programmatically.
Just for completeness: Windows does not save the execution history, at least not publicly.
Edited to add:
According to MSDN , LastAccessTime is your best snapshot:
Note. This method may return an inaccurate value because it uses its own functions whose values cannot be constantly updated by the operating system.
But this follows a few lines later:
To get the last value, call the Refresh method.
(This applies to FileSystemInfo.Refresh .)
All this is a little stupid, if it does not work exactly as described in the document, I will not be surprised.
source share