如何在Windows 7中获取最近的文档列表?

在我的应用程序中,我想获取Windows 7中最近使用过的文档的所有路径(对于所有类型的文档),我使用的是c#,所以有什么方法可以做到这一点吗? 请帮帮我? 。

谢谢

使用Environment.SpecialFolder.Recent:

string path = Environment.GetFolderPath(Environment.SpecialFolder.Recent); var files = Directory.EnumerateFiles(path); 

这种数据存储在注册表中。 Google搜索引导我进行以下操作:

说明:最近从Windows资源管理器打开的文件位置:C:\ Users \\ AppData \ Roaming \ Microsoft \ Windows \ Recent

说明:最近打开的Office文档位置:C:\ Users \\ AppData \ Roaming \ Microsoft \ Office \ Recent

(来自: http : //www.irongeek.com/i.php?page = security / windows-forensics-registry-and-file-system-spots )