get the date when the file was sent to recycle bin

我们两清 提交于 2019-12-05 18:44:07

OK - as usual it is very simple when you know how. I was thinking this would be a property of the file - but it is not - it is a property of the recycle bin.

So once a link to the recycle bin has been got:

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); 

The lastmodified date is a separate property that refers solely to the deleted file.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!