Get the date the file was sent to the trash

Is there any call that will receive the date the file was sent to the trash.

The Shell32 object in Shell32 gives the Shell32 date, but not when it is sent to the trash.

I want to be able to recover files deleted on a specific date.

+4
source share
1 answer

OK - as usual, it is very simple when you know how to do it. I thought it would be a file property, but it is not - it is a basket property.

So, as soon as the link to the basket was received:

 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 date of the last modification is a separate property that refers exclusively to the deleted file.

+1
source

Source: https://habr.com/ru/post/1439526/


All Articles