1 /*
 2  * 用户:从前的我
 3  * 日期:2015/8/26
 4  */
 5 using System;
 6 using System.IO;
 7 
 8 namespace GetXf
 9 {
10     class Program
11     {    
12         public static void GetXfDownloadRecords()
13         {
14             //Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData)获取“AppData\Roaming\”的路径
15             string xfPath = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + @"\Tencent\QQDownload\115248456\SpeedLogs\";
16             string[] str=Directory.GetFiles(xfPath);
17             foreach(string s in str)
18             {
19                 Console.WriteLine(Path.GetFileNameWithoutExtension(s));//输出所有文件名(既QQ旋风的下载记录),不含扩展名。
20             }
21         }
22         public static void Main(string[] args)
23         {
24             GetXfDownloadRecords();
25             Console.ReadKey(true);
26         }
27     }
28 }

 

 

 

 

 

posted on 2015-08-26 21:31  从前的我  阅读(908)  评论(2编辑  收藏  举报