The following code opens search companion and automatically enters the drive, but not the filename. Can this code be alter to also add filename and start the search?
>>>>>>>>>>>>>>>>>>>>>>>>>
Option Explicit
'API declaration for the windows "Search Results" dialog
Private Declare Function ShellSearch& Lib "shell32.dll" _
Alias "ShellExecuteA" (ByVal hwnd As Long, _
ByVal lpOperation As String, _
ByVal lpFile As String, ByVal lpParameters As String, _
ByVal lpDirectory As String, _
ByVal nShowCmd As Long)
Private Const SW_SHOWNORMAL = 1
Sub ShowWindowsSearchDialog_API()
' Specified drive to Search
Const szSDrive As String = "\\jt3cx\Recordings\103\"
ShellSearch 0, "find", szSDrive, "", "", SW_SHOWNORMAL
End Sub
>>>>>>>>>>>>>>>>>>>>>>>>>
Option Explicit
'API declaration for the windows "Search Results" dialog
Private Declare Function ShellSearch& Lib "shell32.dll" _
Alias "ShellExecuteA" (ByVal hwnd As Long, _
ByVal lpOperation As String, _
ByVal lpFile As String, ByVal lpParameters As String, _
ByVal lpDirectory As String, _
ByVal nShowCmd As Long)
Private Const SW_SHOWNORMAL = 1
Sub ShowWindowsSearchDialog_API()
' Specified drive to Search
Const szSDrive As String = "\\jt3cx\Recordings\103\"
ShellSearch 0, "find", szSDrive, "", "", SW_SHOWNORMAL
End Sub