.NET Process Monitor

前端 未结 2 881
南方客
南方客 2020-11-22 12:03

Is there a way to determine when the last time a specific machine last ran a process?

I can use the following to determine if a process is running, but the applicati

2条回答
  •  爱一瞬间的悲伤
    2020-11-22 13:03

    You won't be able to do this using the Process class. However, it should be possible to figure out when an application was last run by configuring audit process tracking in Windows. The following links might get you started:

    Audit process tracking

    How can I track what programs come and go on my machine?

    The process tracking will create entries in the Windows event log which you can then access using C#.

提交回复
热议问题