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.
作为测试,我编写了一个递归查找的.NET 脚本,C:\$Recycle.Bin并且我想在文件存在 X 天后删除它们。
C:\$Recycle.Bin
我决定检查访问时间,但访问时间不会在移动中更新。我如何检查文件是否已在那里存在 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);