Show Windows Find/Search dialog
Ivan F Moala
Google
Can Do
Goto Guest book sign in page [Home]
Greatest place to be
Thanks for visiting my site lucky visitor:
This page was last updated on: April 25, 2006
Copyright © 2002. XcelFiles. All Rights Reserved Ivan F Moala
Tell a friend about this page
Option Explicit


Private Declare Function ShellExecute 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) As Long

Private Const SW_SHOWNORMAL = 1

Sub FindAllFiles()
Dim strPathToSearch As String

strPathToSearch = "C:\"

ShellExecute _
0, _
"find", _
strPathToSearch, _
vbNullString, _
vbNullString, _
SW_SHOWNORMAL

End Sub

A handy routine that you could incorporate into your application if you need to use the Windows Find/Search dialog.