Searching a file

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

Guest

I have looked at the Directory, File and Path classes but couldn’t find what I want. Is there a way to find a file on the harddisk or the path? Like a search where you give a file name and it returns the directories in which it exists.
 
Sam,

I would make a call to the FindFirstFileEx API function through the
P/Invoke layer. You might want to look around first, as there might be a
wrapper class that wraps the various calls for you.

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Sam said:
I have looked at the Directory, File and Path classes but couldn't find
what I want. Is there a way to find a file on the harddisk or the path? Like
a search where you give a file name and it returns the directories in which
it exists.
 
Back
Top