16,551
社区成员
发帖
与我相关
我的任务
分享
WIN32_FIND_DATA fdFind;
TCHAR tzPath[MAX_PATH] = {0};
_sntprintf(tzPath, MAX_PATH-1, TEXT("%s%s"), tzPath, TEXT("C:\\MyDocuments\\*.txt"));
hFind = FindFirstFile(tzPath, &fdFind);
if (hFind != INVALID_HANDLE_VALUE)
{
do
{
//fdFind.cFileName
}while (FindNextFile(hFind, &fdFind));
FindClose(hFind);
}