获得当文件被发送到回收站日期 [英] get the date when the file was sent to recycle bin

查看:201
本文介绍了获得当文件被发送到回收站日期的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有呼叫,这将让当文件被送到回收站的日期。

Is there any call which will get the date when the file was sent to recycle bin.

项对象在 SHELL32 上次更改日期而不是在它被送到回收站。

Items object in Shell32 gives the lastmodified date but not when it is sent to recycle bin.

我希望能够恢复在特定日期删除的文件。

I want to be able to restore files deleted on a particular date.

推荐答案

确定 - 通常是很简单的,当你知道怎么办。我想这将是该文件的一个属性 - 但它不是 - 它是回收站的属性。

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.

这篇关于获得当文件被发送到回收站日期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆