windows 查找上次清空回收站的日期

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/3142152/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 14:44:14  来源:igfitidea点击:

Find Date Recycle Bin Was Last Emptied

windowsdatebinrecycle

提问by Dustin Gamester

Where on my computer would I be able to find the last date that the recycle bin was last emptied, would such an event be stored in the windows system logs? and if so where?

我可以在我的计算机上的哪个位置找到上次清空回收站的最后日期,这样的事件是否会存储在 Windows 系统日志中?如果是这样,在哪里?

Thanks :)

谢谢 :)

回答by Konrad

I doubt it would be recorded anywhere in the event logs, but there might be file system traces left.

我怀疑它会记录在事件日志的任何地方,但可能会留下文件系统痕迹。

UPDATE: using UnixTools I can confirm there are file system traces left. If you navigate to C:\$Recycle.Binthere will be a number of entries (even with the bin appearing empty). These entries appear to correspond to security IDs (SIDs) on the system. In my test the most recently modified one was the date and time I last emptied the recycle bin.

更新:使用 UnixTools 我可以确认有文件系统痕迹。如果您导航到C:\$Recycle.Bin会有许多条目(即使垃圾箱显示为空)。这些条目似乎对应于系统上的安全 ID ( SID)。在我的测试中,最近修改的是我上次清空回收站的日期和时间。

This means it probably can be retrieved programatically with the Windows API.

这意味着它可能可以使用 Windows API 以编程方式检索。