activity timestamp on a file?
Visual Basic
2
Posts
2
Posters
0
Views
1
Watching
-
Is there a way that i can monitor the use of a file in terms of a timestamp? My goal is to monitor the activity of a file and when it goes beyond 10 minutes of non activity I will shut it down.
Not reliably. You don't have to actually run the executable to change its 'Last Accessed' attribute. Just getting properties on the file will change it. A better method would be to poll and watch the process list, look for the name you want and get its process ID when it shows up, then monitor that ID for CPU usage. You could get those statistics from the Process class. RageInTheMachine9532