在我的应用程序中,我想获取Windows 7中最近使用过的文档的所有路径(对于所有类型的文档),我使用的是c#,那么有什么方法可以做到这一点吗?请帮帮我?.
谢谢
as-*_*cii 11
使用Environment.SpecialFolder.Recent:
string path = Environment.GetFolderPath(Environment.SpecialFolder.Recent);
var files = Directory.EnumerateFiles(path);
Run Code Online (Sandbox Code Playgroud)