Hey guys! I want to make a simple app that will search for a predetermined file name and will list all occurrences in one listbox.

I've searched on Google, but all the "search files" codes that I found were somewhat confusing. Can someone provide me some info so I can accomplish this? Thanks!

6 Years
Discussion Span
Last Post by RenanLazarotto

What will you have in a listbox? Files?
If so you can do a loop through all the item in listbox and compare each of them to your file name.
Can you do it?


Actually, I want to add the found files (or, to be more precise, it's full path, like C:\path\to\my.file). I need to search them around the user's filesystem, which seems that is exactly what BobS0327 posted. Thank you, I'll try it better later, I'm at College right now.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.