Hi.
This code will return the first file it finds.
Call it like this : MsgBox(Me.Search("D:\","WhatEver.jpg"))
VB Code:
Private Function Search(ByVal Dir As String, ByVal Find As String) As String
Dim F As IO.FileInfo = New IO.FileInfo(IO.Path.Combine(Dir, Find))
If F.Exists = True Then
Return F.FullName
End If
Dim sFolders() As String = IO.Directory.GetDirectories(Dir)
Dim S As String =""
Dim Q As String = ""
For Each S In sFolders
Q = Me.Search(S, Find)
If Q <> "" Then
Exit For
End If
Next
Return Q
End Function