[Migrated content. Thread originally posted on 29 February 2008]
I'm working on a program where I need to determine if certain files exist anywhere on the hard drive of the pc. The only problem is the files that I'm searching for may be in a variety of different directories.I tried using the "C$FULLNAME" library call as it says it will find the file and return the full path name for that file. However, I haven't had any success in it doing any kind of search for the file.
I also tried using a windows API call "FindFirstFile" using wildcards and such. This call will find the file if I give it the full path, but if I don't have the exact path, it returns an invalid handle and no file data.
I know I could use a system call to do a "DIR /s" and re-direct that to a file, but I was hoping to avoid that archaic method.
Any suggestions would be appreciated.



