请问指定了网络共享路径如何枚举共享目录下的文件!
有相应的访问权限!
有完整的网络路径如:\\server\sharedocument
如何枚举sharedocument下的文件?谢了!
好像用传统方式枚举本地目录文件的方式不行!如下:
WIN32_FIND_DATA fid;
HANDLE hFind=::FindFirsFile(_T("\\\\server\\sharedocument\\*.*"),&fid);
if (hFind!=INVALID_HANDLE_VALUE) {
do {
if (!(fid.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY))
AfxMessageBox(fid.cFileName);//or do anything u want
}while (::FindNextFile(hFind,&fid));
::FindClose(hFind);
}
郁闷!!!!:-(