2012年3月28日

遍历某个盘符下的文件

摘要: #include <windows.h>#include <stdio.h>BOOL IsRoot(LPCTSTR lpszPath) { TCHAR szRoot[4]; wsprintf(szRoot, "%c:\\", lpszPath[0]); return (lstrcmp(szRoot, lpszPath) == 0); } void FindInAll(::LPCTSTR lpszPath) { TCHAR szFind[MAX_PATH]; lstrcpy(szFind, lpszPath); if (!IsRoot(szFind). 阅读全文

posted @ 2012-03-28 23:19 z光束star 阅读(326) 评论(0) 推荐(0)

导航