[英]How do i check how long a file has been in the Recycle Bin?
作为测试,我编写了一个.NET脚本,该脚本递归地查找C:\\$Recycle.Bin
并且我想在文件存放X天后将其删除。
我决定检查访问时间,但是访问时间不会在移动中更新。 我如何检查文件是否已存在X一段时间? (我正在使用Windows 7)
此C#版本可能会有所帮助:
var Shl = new Shell(); Folder Recycler = Shl.NameSpace(10);
FI = Recycler.Items().Item(0);
string FileName = Recycler.GetDetailsOf(FI, 0);
string FilePath = Recycler.GetDetailsOf(FI, 1);
string RecyleDate = Recycler.GetDetailsOf(FI, 2);
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.