Occurences of a file

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am looking at the best way to produce a list of all EXE, DLL's etc stored
in the system.

I have looked at FindFirstFile and FindNextFile API's but I am confused that
if I change to all the sub-directories to obtain the list of files I would
then have to move all the way back up to the root and move onto the next
directory.

Is this correct or it there an easier way of obtaining the above information?

Thanks in advance
 
MarkS said:
I am looking at the best way to produce a list of all EXE, DLL's etc stored
in the system.

I have looked at FindFirstFile and FindNextFile API's but I am confused that
if I change to all the sub-directories to obtain the list of files I would
then have to move all the way back up to the root and move onto the next
directory.

Is this correct or it there an easier way of obtaining the above information?

The solution to this task usually involves recursive function. Some
examples are found at:

http://www.experts-exchange.com/Programming/Programming_Languages/Cplusplus/Q_20530067.html
 
Back
Top