Window Search Result


‘open or print file

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 mShowCmd as long) as long

‘constanta

Private Cons SW_SHOWNORMAL =1

Private sub cmd_Click()

Dim strDir As String

strDir =”D:\”

‘show dialog box search results

Call ShellExecute(Me.hwnd, “find”,strDir,vbNullString,vbNullString,SH_SHOWNORMAL)

End Sub

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s