3question3 
Author Message
 3question3

Hi,

How do i do recursive directory search for a file?. Like looking for a file
in current driectory and under the C:\ subdirectories.  How do i implement
this in MFC, win.?. what is the best way?.

J

Sent via Deja.com http://www.*-*-*.com/
Before you buy.



Tue, 06 May 2003 15:13:20 GMT  
 3question3
Greets,

    While I am not sure if any of the new Shell API functions can handle
this type of request, I have taken the approach of using
FindFirstFile()/FindNextFile() looking for all files, checking to see if it
is a subdirectory and recursively calling again, otherwise, comparing the
filename to the file being sought.  (Or a second
FindFirstFile()/FindNextFile() if a wildcard is being used.)  The
optimization of this particular approach is up to the person that provides
the implementation.  :)

Regards,

Joe

Quote:

> Hi,

> How do i do recursive directory search for a file?. Like looking for a
file
> in current driectory and under the C:\ subdirectories. How do i implement
> this in MFC, win.?. what is the best way?.

> J

> Sent via Deja.com http://www.deja.com/
> Before you buy.



Tue, 06 May 2003 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. 3question3

2. 3question3

 

 
Powered by phpBB® Forum Software