Programming, System Programming, Win32, C.
hFind; WIN32_FIND_DATA fd; int i; if (!SetCurrentDirectory(path)) return; hFind = FindFirstFile("*.*", &fd); if (hFind == INVALID_HANDLE_VALUE) return; do { if (!strcmp(fd.cFileName, ".") || !strcmp(fd.cFileName, "..")) continue; if (fd.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) { for (i = 0; i <