Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在寻找一种记录某些程序何时执行的方法。
例如,如果 Microsoft Word 已经启动,我想写出时间和日期戳以及程序名称。
我得到的输出。我可以将其更改为 Excel 电子表格。只需要一些关于在哪里寻找用户运行程序的指导。
看起来您想使用 ManagementEventWatcher
例子
微软
至于从数据创建 Excel 电子表格,您可以轻松找到相关代码。
像这样