C# 获取.NET中的“最近使用的文档”文件夹
如何使用C#?获取“最近使用的文档”文件夹的路径,请参见:C# 获取.NET中的“最近使用的文档”文件夹,c#,.net,C#,.net,如何使用C#?获取“最近使用的文档”文件夹的路径,请参见: System.Environment.SpecialFolder.Recent 因此: +1,但如果他只需要路径,则DirectoryInfo可能是不必要的:) DirectoryInfo d = new DirectoryInfo( System.Environment.GetFolderPath(Environment.SpecialFolder.Recent) );
System.Environment.SpecialFolder.Recent
因此:
+1,但如果他只需要路径,则DirectoryInfo可能是不必要的:)
DirectoryInfo d = new DirectoryInfo(
System.Environment.GetFolderPath(Environment.SpecialFolder.Recent)
);