简体   繁体   English

Windows中的日志文件修改

[英]Log file modifications in Windows

I'm trying to find a way to log the modification of a simple textfile into a log in Windows. 我正在尝试找到一种方法来将对简单文本文件的修改记录到Windows中的日志中。 I just can't seem to solve it using the auditing tool for Event viewer since it only records authorization, not modification. 我只是似乎无法使用事件查看器的审核工具来解决它,因为它仅记录授权,而不记录修改。 OR I'm doing it wrong. 还是我做错了。 Any help would be great. 任何帮助都会很棒。

I'm not sure what exactly is being asked here. 我不确定这里到底要问什么。 Are you trying to log events that are generated whenever a particular file is being modified? 您是否在尝试记录修改特定文件时生成的事件?

Perhaps you want to investigate using ReadDirectoryChangesW . 也许您想使用ReadDirectoryChangesW进行调查。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM