Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recursive Search

Status
Not open for further replies.

Nestor23

Programmer
Apr 4, 2003
7
GB
Could anyone pls tell me how can I recursively search for a file in all the directories and subdirectories on the current drive.

It would be great if you have a code or a links to one.

Thank you in advance,

Nestor
 
Look in MSDN for the topic
"HOWTO: Search Directories to Find or List Files"
They have an example in Visual Basic, that uses calls to the API funtion FindFirstFile in a recursive way to look for a file or directory.

IShellLink::Resolve from the Shell interface IShellLink has some aspects of recursivity, but I do not recomend using it unless u have some knowledge of COM library calls

Hope this helps,

s-)

Blessed is he who in the name of justice and goodwill, sheperds the weak through the valley of darkness...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top