您的位置:首页 > 编程语言 > C#

C#获取QQ旋风的下载记录

2015-08-26 21:31 369 查看


/*
*用户:从前的我
*日期:2015/8/26
*/
usingSystem;
usingSystem.IO;

namespaceGetXf
{
classProgram
{
publicstaticvoidGetXfDownloadRecords()
{
//Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData)获取“AppData\Roaming\”的路径
stringxfPath=Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData)+@"\Tencent\QQDownload\115248456\SpeedLogs\";
string[]str=Directory.GetFiles(xfPath);
foreach(stringsinstr)
{
Console.WriteLine(Path.GetFileNameWithoutExtension(s));//输出所有文件名(既QQ旋风的下载记录),不含扩展名。
}
}
publicstaticvoidMain(string[]args)
{
GetXfDownloadRecords();
Console.ReadKey(true);
}
}
}







                                            
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: