Occurences of a file

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
 
?

=?ISO-8859-2?Q?Mihajlo_Cvetanovi=E6?=

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top