如何在 Windows 7 中获取最近文档的列表? [英] how to get a list of recent documents in windows 7?

查看:22
本文介绍了如何在 Windows 7 中获取最近文档的列表?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

in my app i want to get all paths of recent used document in windows 7 (for all types of documents) , i am using c# ,so is there any method to do that ? help me please? .

谢谢

推荐答案

Use Environment.SpecialFolder.Recent:

Use Environment.SpecialFolder.Recent:

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

这篇关于如何在 Windows 7 中获取最近文档的列表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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