首页
社区
课程
招聘
[求助]想写个小软件,用来统计某文件夹内所有文件名
发表于: 2007-11-11 21:32 5982

[求助]想写个小软件,用来统计某文件夹内所有文件名

2007-11-11 21:32
5982
比如有20个人,要上传资料到某文件夹,用该软件能分别统计出谁谁谁上传了几个文件,这样的 软件,有没有人给点思路我......
我只学过一些汇编知识,正在硬啃win32的汇编。

[课程]FART 脱壳王!加量不加价!FART作者讲授!

收藏
免费 0
支持
分享
最新回复 (3)
雪    币: 205
活跃值: (11)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
2
你参考一下吧.
void CGetfilenameDlg::GetFileNmae(char szFilePath[MAX_PATH])
{
        int i=1;
        CFileFind   finder;
        sprintf(szFilePath,"%s\\*.*",szFilePath);
        BOOL   bGet=finder.FindFile(szFilePath);   
        CString str,str1,str2,str3;
        char szSonPath[MAX_PATH];
        while   (bGet)   
        {   
                bGet=finder.FindNextFile();   
                if(finder.IsDots())   
                        continue;   
                if(finder.IsDirectory())   
                {
                       
                        str=finder.GetFileTitle();
                        //////目录下所有文件
                        str3.Format("[%s]",str);
                        WriteStr(str3);
                       
                        i=1;
                        sprintf(szSonPath,"%s",str);
                        GetFileNmae(szSonPath);
                       
                }
                else
                {
                        str1=finder.GetFileName();
                        str2.Format("File%d=%s",i,str1);
                        WriteStr(str2);
                       
                        i++;
                }
        }   
        finder.Close();
}
2007-11-12 10:23
0
雪    币: 1852
活跃值: (504)
能力值: (RANK:1010 )
在线值:
发帖
回帖
粉丝
3
FindFirstFile/FindNextFile
2007-11-12 13:19
0
雪    币: 230
活跃值: (10)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
4
2007-11-12 16:07
0
游客
登录 | 注册 方可回帖
返回
//