
Originally Posted by
Poobah
Yeah, I understand that, but that's not really what I meant. I asked the above question, because I noticed that the cFileName string in the WIN32_FIND_DATA structure always contained only a filename, even if the pattern contained a path, such as "C:\*". If I sent the file to fopen(), it wouldn't work unless the current directory was C:\.
It doesn't matter now, though, because I've written my own glob() function using FindFirstFile/FindNextFile, adding a directory extracted from the pattern to each returned file name. Thanks for the help, everyone.